org.opcfoundation.ua.transport
Enum WriteState

java.lang.Object
  extended by java.lang.Enum<WriteState>
      extended by 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

Enum Constant Summary
Canceled
           
Error
           
Queued
           
Ready
           
Writing
           
Written
           
 
Field Summary
static EnumSet<WriteState> CANCELABLE_STATES
           
static EnumSet<WriteState> FINAL_STATES
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

FINAL_STATES

public static final EnumSet<WriteState> FINAL_STATES

CANCELABLE_STATES

public static final EnumSet<WriteState> CANCELABLE_STATES
Method Detail

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.