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
-
Field Summary
Fields Modifier and Type Field Description private int
code
private static java.util.Map<java.lang.Integer,ZMonitor.Event>
MAP
-
Constructor Summary
Constructors Modifier Constructor Description private
Event(int code)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZMonitor.Event
findByCode(int event)
Find theZMonitor.Event
associated with the numerical event code.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_FAILED_NO_DETAIL
public static final ZMonitor.Event HANDSHAKE_FAILED_NO_DETAIL
-
HANDSHAKE_SUCCEEDED
public static final ZMonitor.Event HANDSHAKE_SUCCEEDED
-
HANDSHAKE_FAILED_PROTOCOL
public static final ZMonitor.Event HANDSHAKE_FAILED_PROTOCOL
-
HANDSHAKE_FAILED_AUTH
public static final ZMonitor.Event HANDSHAKE_FAILED_AUTH
-
HANDSHAKE_PROTOCOL
public static final ZMonitor.Event HANDSHAKE_PROTOCOL
-
ALL
public static final ZMonitor.Event ALL
-
-
Field Detail
-
MAP
private static final java.util.Map<java.lang.Integer,ZMonitor.Event> MAP
-
code
private final int code
-
-
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
-
findByCode
public static ZMonitor.Event findByCode(int event)
Find theZMonitor.Event
associated with the numerical event code.- Parameters:
event
- the numerical event code- Returns:
- the found
ZMonitor.Event
-
-