| 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()
Receive the next message that becomes available for this
Subscription,
waiting if necessary until a Message becomes available. |
Message |
SyncSubscription.nextMessage(long timeout)
Receive the next
Message that arrives for this Subscription
within the specified timeout interval. |
Message |
SyncSubscription.nextMessage(long timeout,
TimeUnit unit)
Receive the next
Message that arrives for this Subscription
within the specified timeout interval. |
Message |
Connection.request(String subject,
byte[] data)
Publishes a request message to the specified subject, waiting for a response until one is
available.
|
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 |
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 |
Connection.publish(Message msg)
Publishes a message to a subject.
|
Copyright © 2015–2016 Apcera, Inc.. All rights reserved.