org.opcfoundation.ua.utils.asyncsocket
Enum BufferMonitorState

java.lang.Object
  extended by java.lang.Enum<BufferMonitorState>
      extended by org.opcfoundation.ua.utils.asyncsocket.BufferMonitorState
All Implemented Interfaces:
Serializable, Comparable<BufferMonitorState>

public enum BufferMonitorState
extends Enum<BufferMonitorState>

Server Socket states. Initial states: Waiting Final states: Triggered, Canceled, Error State transitions: Waiting -> Triggered Waiting -> Canceled Waiting -> Closed Waiting -> Error

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)

Enum Constant Summary
Canceled
           
Closed
           
Error
           
Triggered
           
Waiting
           
 
Field Summary
static EnumSet<BufferMonitorState> FINAL_STATES
           
static EnumSet<BufferMonitorState> UNREACHABLE
           
 
Method Summary
 boolean isFinal()
           
 boolean isUnreachable()
          Tests if the state is unreachable
static BufferMonitorState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BufferMonitorState[] 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

Waiting

public static final BufferMonitorState Waiting

Triggered

public static final BufferMonitorState Triggered

Canceled

public static final BufferMonitorState Canceled

Closed

public static final BufferMonitorState Closed

Error

public static final BufferMonitorState Error
Field Detail

FINAL_STATES

public static final EnumSet<BufferMonitorState> FINAL_STATES

UNREACHABLE

public static final EnumSet<BufferMonitorState> UNREACHABLE
Method Detail

values

public static BufferMonitorState[] 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 (BufferMonitorState c : BufferMonitorState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BufferMonitorState 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()

isUnreachable

public boolean isUnreachable()
Tests if the state is unreachable

Returns:
if true the state is unreachable


Copyright © 2018. All rights reserved.