- 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.1.1"
- 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.
- createAccount(SecureRandom) - Static method in class io.nats.client.NKey
-
Create an Account NKey from the provided random number generator.
- createCluster(SecureRandom) - Static method in class io.nats.client.NKey
-
Create an Cluster NKey from the provided random number generator.
- createDispatcher(MessageHandler) - Method in interface io.nats.client.Connection
-
Create a Dispatcher
for this connection.
- createOperator(SecureRandom) - Static method in class io.nats.client.NKey
-
Create an Operator NKey from the provided random number generator.
- createServer(SecureRandom) - Static method in class io.nats.client.NKey
-
Create a Server NKey from the provided random number generator.
- createUser(SecureRandom) - Static method in class io.nats.client.NKey
-
Create a User NKey from the provided random number generator.
- 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_UTF8_SUBJECTS - Static variable in class io.nats.client.Options
-
This property is used to enable support for UTF8 subjects.
- 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.
- secure() - Method in class io.nats.client.Options.Builder
-
- server(String) - Method in class io.nats.client.Options.Builder
-
Add a server to the list of known servers.
- servers(String[]) - Method in class io.nats.client.Options.Builder
-
Add an array of servers to the list of known servers.
- setPendingLimits(long, long) - Method in interface io.nats.client.Consumer
-
Set limits on the maximum number of messages, or maximum size of messages this consumer
will hold before it starts to drop new messages waiting for the application to drain the queue.
- sign(byte[]) - Method in interface io.nats.client.AuthHandler
-
Sign is called by the library when the server sends a nonce.
- sign(byte[]) - Method in class io.nats.client.NKey
-
Sign aribitrary binary input.
- slowConsumerDetected(Connection, Consumer) - Method in interface io.nats.client.ErrorListener
-
Called by the connection when a "slow" consumer is detected.
- sslContext(SSLContext) - Method in class io.nats.client.Options.Builder
-
Set the SSL context, requires that the server supports TLS connections and
the URI specifies TLS.
- Statistics - Interface in io.nats.client
-
- subscribe(String) - Method in interface io.nats.client.Connection
-
Create a synchronous subscription to the specified subject.
- subscribe(String, String) - Method in interface io.nats.client.Connection
-
Create a synchronous subscription to the specified subject and queue.
- subscribe(String) - Method in interface io.nats.client.Dispatcher
-
Create a subscription to the specified subject under the control of this
dispatcher.
- subscribe(String, String) - Method in interface io.nats.client.Dispatcher
-
Create a subscription to the specified subject and queue under the control of
this dispatcher.
- Subscription - Interface in io.nats.client
-
A Subscription encapsulates an incoming queue of messages associated with a single
subject and optional queue name.
- supportUTF8Subjects() - Method in class io.nats.client.Options.Builder
-
The client protocol is not clear about the encoding for subject names.
- supportUTF8Subjects() - Method in class io.nats.client.Options
-