io.nats.client.See: Description
| Interface | Description |
|---|---|
| Connection |
The Connection class is at the heart of the NATS Java client.
|
| ConnectionListener |
Applications can use a ConnectionListener to track the status of a
Connection. |
| Consumer |
A Consumer in the NATS library is an object that represents an incoming queue of
messages.
|
| Dispatcher |
This library uses the concept of a Dispatcher to organize message callbacks in a way that the
application can control.
|
| ErrorListener |
This library groups problems into three categories:
Errors
The server sent an error message using the
-err protocol operation.
Exceptions
A Java exception occurred, and was handled by the library.
Slow Consumers
One of the connections consumers, Subscription or Dispatcher, is slow, and starting to drop messages.
|
| Message |
The NATS library uses a Message object to encapsulate incoming messages.
|
| MessageHandler |
Dispatchers use the MessageHandler interface to define the listener
for their messages. |
| Statistics |
Connections can provide an instance of Statistics,
getStatistics(). |
| Subscription |
A Subscription encapsulates an incoming queue of messages associated with a single
subject and optional queue name.
|
| Class | Description |
|---|---|
| Nats |
The Nats class is the entry point into the NATS client for Java.
|
| NUID |
A highly performant unique identifier generator.
|
| Options |
The Options class specifies the connection options for a new NATs connection, including the default options.
|
| Options.Builder |
Options are created using a Builder.
|
| Enum | Description |
|---|---|
| Connection.Status | |
| ConnectionListener.Events |
io.nats.client. Applications
will start from the Nats class to connect to the gnatsd server. Once connected, they can
use the Connection object to publish messages or create subscriptions.