public enum NATSEvent extends Enum<NATSEvent>
Enum Constant and Description |
---|
ASYNC_ERROR
An asynchronous error has occurred.
|
CLOSED
The connection to the NATS cluster has been closed.
|
DISCONNECTED
The server has disconnected.
|
RECONNECTED
The server has reconnected.
|
Modifier and Type | Method and Description |
---|---|
static NATSEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NATSEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NATSEvent ASYNC_ERROR
public static final NATSEvent DISCONNECTED
public static final NATSEvent CLOSED
public static final NATSEvent RECONNECTED
public static NATSEvent[] values()
for (NATSEvent c : NATSEvent.values()) System.out.println(c);
public static NATSEvent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2016 Apcera, Inc.. All rights reserved.