| Package | Description |
|---|---|
| io.nats.client |
This is the Java client API for NATS, including classes and interfaces for interacting with the
NATS server.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
SyncSubscription.nextMessage()
Receives the next
Message that becomes available for this Subscription,
waiting if necessary until a Message becomes available. |
Message |
SyncSubscription.nextMessage(long timeout)
Receives the next
Message that arrives for this Subscription, waiting up to
the specified wait time if necessary for a Message to become available. |
Message |
SyncSubscription.nextMessage(long timeout,
TimeUnit unit)
Receives the next
Message that arrives for this Subscription, waiting up to
the specified wait time if necessary for a Message to become available. |
Message |
ConnectionImpl.request(String subject,
byte[] data) |
Message |
Connection.request(String subject,
byte[] data)
Publishes a request message to the specified subject, waiting for a response until one is
available.
|
Message |
ConnectionImpl.request(String subject,
byte[] data,
long timeout) |
Message |
Connection.request(String subject,
byte[] data,
long timeout)
Publishes a request message to the specified subject, waiting up to
timeout msec for
a response. |
Message |
ConnectionImpl.request(String subject,
byte[] data,
long timeout,
TimeUnit unit) |
Message |
Connection.request(String subject,
byte[] data,
long timeout,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageHandler.onMessage(Message msg)
Passes a message to the handler.
|
void |
ConnectionImpl.publish(Message msg) |
void |
Connection.publish(Message msg)
Publishes a message to a subject.
|
Copyright © 2015-2016 Apcera, Inc.. All Rights Reserved.