org.opcfoundation.ua.utils.asyncsocket
Enum BufferMonitorState
java.lang.Object
java.lang.Enum<BufferMonitorState>
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)
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
FINAL_STATES
public static final EnumSet<BufferMonitorState> FINAL_STATES
UNREACHABLE
public static final EnumSet<BufferMonitorState> UNREACHABLE
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.