org.opcfoundation.ua.utils.asyncsocket
Enum ServerSocketState
java.lang.Object
java.lang.Enum<ServerSocketState>
org.opcfoundation.ua.utils.asyncsocket.ServerSocketState
- All Implemented Interfaces:
- Serializable, Comparable<ServerSocketState>
public enum ServerSocketState
- extends Enum<ServerSocketState>
Servcer Socket states.
Initial states: Ready
Final states: Closed, Error
State transitions:
Ready -> Bound -> Closed
Ready -> Bound -> Error
Ready -> Closed
- Author:
- Toni Kalajainen (toni.kalajainen@vtt.fi)
Ready
public static final ServerSocketState Ready
Bound
public static final ServerSocketState Bound
Error
public static final ServerSocketState Error
Closed
public static final ServerSocketState Closed
OPEN_STATES
public static final EnumSet<ServerSocketState> OPEN_STATES
ERROR_STATES
public static final EnumSet<ServerSocketState> ERROR_STATES
INITIAL_STATES
public static final EnumSet<ServerSocketState> INITIAL_STATES
FINAL_STATES
public static final EnumSet<ServerSocketState> FINAL_STATES
READY_TRANSITION_STATES
public static final EnumSet<ServerSocketState> READY_TRANSITION_STATES
BOUND_TRANSITION_STATES
public static final EnumSet<ServerSocketState> BOUND_TRANSITION_STATES
values
public static ServerSocketState[] 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 (ServerSocketState c : ServerSocketState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ServerSocketState 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 © 2018. All rights reserved.