org.opcfoundation.ua.transport
Enum WriteState
java.lang.Object
java.lang.Enum<WriteState>
org.opcfoundation.ua.transport.WriteState
- All Implemented Interfaces:
- Serializable, Comparable<WriteState>
public enum WriteState
- extends Enum<WriteState>
Message write states.
Initial states: Queued
Final states: Flushed, Error
The only allowed state transition paths:
Queued -> Writing -> Flushed
Queued -> Writing -> Error
- See Also:
AsyncWrite
|
Method Summary |
boolean |
isFinal()
|
static WriteState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WriteState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Ready
public static final WriteState Ready
Queued
public static final WriteState Queued
Writing
public static final WriteState Writing
Written
public static final WriteState Written
Canceled
public static final WriteState Canceled
Error
public static final WriteState Error
FINAL_STATES
public static final EnumSet<WriteState> FINAL_STATES
CANCELABLE_STATES
public static final EnumSet<WriteState> CANCELABLE_STATES
values
public static WriteState[] 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 (WriteState c : WriteState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WriteState 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
isFinal
public boolean isFinal()
Copyright © 2018. All rights reserved.