public static enum ConnectionListener.Events extends java.lang.Enum<ConnectionListener.Events>
Enum Constant and Description |
---|
CLOSED
The connection is permanently closed, either by manual action or failed reconnects.
|
CONNECTED
The connection has successfully completed the handshake with the nats-server.
|
DISCONNECTED
The connection lost its connection, but may try to reconnect if configured to.
|
DISCOVERED_SERVERS
The connection was made aware of new servers from the current server connection.
|
LAME_DUCK
Server Sent a lame duck mode.
|
RECONNECTED
The connection was connected, lost its connection and successfully reconnected.
|
RESUBSCRIBED
The connection was reconnected and the server has been notified of all subscriptions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEvent() |
java.lang.String |
getNatsEvent() |
boolean |
isConnectionEvent() |
java.lang.String |
toString() |
static ConnectionListener.Events |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionListener.Events[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionListener.Events CONNECTED
public static final ConnectionListener.Events CLOSED
public static final ConnectionListener.Events DISCONNECTED
public static final ConnectionListener.Events RECONNECTED
public static final ConnectionListener.Events RESUBSCRIBED
public static final ConnectionListener.Events DISCOVERED_SERVERS
public static final ConnectionListener.Events LAME_DUCK
public static ConnectionListener.Events[] values()
for (ConnectionListener.Events c : ConnectionListener.Events.values()) System.out.println(c);
public static ConnectionListener.Events valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isConnectionEvent()
public java.lang.String getEvent()
public java.lang.String getNatsEvent()
public java.lang.String toString()
toString
in class java.lang.Enum<ConnectionListener.Events>