com.google.bitcoin.protocols.channels
Enum PaymentChannelServerState.State
java.lang.Object
java.lang.Enum<PaymentChannelServerState.State>
com.google.bitcoin.protocols.channels.PaymentChannelServerState.State
- All Implemented Interfaces:
- Serializable, Comparable<PaymentChannelServerState.State>
- Enclosing class:
- PaymentChannelServerState
public static enum PaymentChannelServerState.State
- extends Enum<PaymentChannelServerState.State>
The different logical states the channel can be in. Because the first action we need to track is the client
providing the refund transaction, we begin in WAITING_FOR_REFUND_TRANSACTION. We then step through the states
until READY, at which time the client can increase payment incrementally.
WAITING_FOR_REFUND_TRANSACTION
public static final PaymentChannelServerState.State WAITING_FOR_REFUND_TRANSACTION
WAITING_FOR_MULTISIG_CONTRACT
public static final PaymentChannelServerState.State WAITING_FOR_MULTISIG_CONTRACT
WAITING_FOR_MULTISIG_ACCEPTANCE
public static final PaymentChannelServerState.State WAITING_FOR_MULTISIG_ACCEPTANCE
READY
public static final PaymentChannelServerState.State READY
CLOSING
public static final PaymentChannelServerState.State CLOSING
CLOSED
public static final PaymentChannelServerState.State CLOSED
ERROR
public static final PaymentChannelServerState.State ERROR
values
public static PaymentChannelServerState.State[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PaymentChannelServerState.State c : PaymentChannelServerState.State.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PaymentChannelServerState.State valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2014. All rights reserved.