- clearDroppedCount() - Method in interface io.nats.client.Consumer
-
Reset the drop count to 0.
- CLIENT_LANGUAGE - Static variable in class io.nats.client.Nats
-
Current language of the library - "java"
- CLIENT_VERSION - Static variable in class io.nats.client.Nats
-
Current version of the library - "2.0.0"
- close() - Method in interface io.nats.client.Connection
-
- closeDispatcher(Dispatcher) - Method in interface io.nats.client.Connection
-
Close a dispatcher.
- connect() - Static method in class io.nats.client.Nats
-
- connect(String) - Static method in class io.nats.client.Nats
-
The Java client generally expects URLs of the form nats://hostname:port
- connect(Options) - Static method in class io.nats.client.Nats
-
Options can be used to set the server URL, or multiple URLS, callback
handlers for various errors, and connection events.
- connectAsynchronously(Options, boolean) - Static method in class io.nats.client.Nats
-
Try to connect in another thread, a connection listener is required to get
the connection.
- Connection - Interface in io.nats.client
-
The Connection class is at the heart of the NATS Java client.
- Connection.Status - Enum in io.nats.client
-
- connectionEvent(Connection, ConnectionListener.Events) - Method in interface io.nats.client.ConnectionListener
-
Connection related events that occur asynchronously in the client code are
sent to a ConnectionListener via a single method.
- ConnectionListener - Interface in io.nats.client
-
Applications can use a ConnectionListener to track the status of a
Connection.
- connectionListener(ConnectionListener) - Method in class io.nats.client.Options.Builder
-
- ConnectionListener.Events - Enum in io.nats.client
-
- connectionName(String) - Method in class io.nats.client.Options.Builder
-
Set the connection's optional Name.
- connectionTimeout(Duration) - Method in class io.nats.client.Options.Builder
-
Set the timeout for connection attempts.
- Consumer - Interface in io.nats.client
-
A Consumer in the NATS library is an object that represents an incoming queue of
messages.
- createDispatcher(MessageHandler) - Method in interface io.nats.client.Connection
-
Create a Dispatcher for this connection.
- pedantic() - Method in class io.nats.client.Options.Builder
-
Turn on pedantic mode for the server, in relation to this connection.
- pingInterval(Duration) - Method in class io.nats.client.Options.Builder
-
Set the interval between attempts to pings the server.
- PROP_CLEANUP_INTERVAL - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_CONNECTION_CB - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_CONNECTION_NAME - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_CONNECTION_TIMEOUT - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_DATA_PORT_TYPE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_ERROR_LISTENER - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_MAX_CONTROL_LINE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_MAX_PINGS - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_MAX_RECONNECT - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_NO_ECHO - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_NORANDOMIZE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_OPENTLS - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_PASSWORD - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_PEDANTIC - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_PING_INTERVAL - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_RECONNECT_BUF_SIZE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_RECONNECT_WAIT - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_SECURE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_SERVERS - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_TOKEN - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_URL - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_USE_OLD_REQUEST_STYLE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_USERNAME - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- PROP_VERBOSE - Static variable in class io.nats.client.Options
-
Property used to configure a builder from a Properties object.
- publish(String, byte[]) - Method in interface io.nats.client.Connection
-
Send a message to the specified subject.
- publish(String, String, byte[]) - Method in interface io.nats.client.Connection
-
Send a request to the specified subject, providing a replyTo subject.