Package org.zeromq
Enum ZMonitor.Event
- java.lang.Object
-
- java.lang.Enum<ZMonitor.Event>
-
- org.zeromq.ZMonitor.Event
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZMonitor.Event>
- Enclosing class:
- ZMonitor
public static enum ZMonitor.Event extends java.lang.Enum<ZMonitor.Event>
Enumerates types of monitoring events.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_FAILED
ACCEPTED
ALL
BIND_FAILED
CLOSE_FAILED
CLOSED
CONNECT_DELAYED
CONNECT_RETRIED
CONNECTED
DISCONNECTED
HANDSHAKE_PROTOCOL
LISTENING
MONITOR_STOPPED
-
Field Summary
Fields Modifier and Type Field Description private int
events
-
Constructor Summary
Constructors Modifier Constructor Description private
Event(int events)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static ZMonitor.Event
find(int event)
static ZMonitor.Event
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZMonitor.Event[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTED
public static final ZMonitor.Event CONNECTED
-
CONNECT_DELAYED
public static final ZMonitor.Event CONNECT_DELAYED
-
CONNECT_RETRIED
public static final ZMonitor.Event CONNECT_RETRIED
-
LISTENING
public static final ZMonitor.Event LISTENING
-
BIND_FAILED
public static final ZMonitor.Event BIND_FAILED
-
ACCEPTED
public static final ZMonitor.Event ACCEPTED
-
ACCEPT_FAILED
public static final ZMonitor.Event ACCEPT_FAILED
-
CLOSED
public static final ZMonitor.Event CLOSED
-
CLOSE_FAILED
public static final ZMonitor.Event CLOSE_FAILED
-
DISCONNECTED
public static final ZMonitor.Event DISCONNECTED
-
MONITOR_STOPPED
public static final ZMonitor.Event MONITOR_STOPPED
-
HANDSHAKE_PROTOCOL
public static final ZMonitor.Event HANDSHAKE_PROTOCOL
-
ALL
public static final ZMonitor.Event ALL
-
-
Method Detail
-
values
public static ZMonitor.Event[] 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 (ZMonitor.Event c : ZMonitor.Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZMonitor.Event valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
find
private static ZMonitor.Event find(int event)
-
-