- getAckInbox() - Method in interface io.nats.streaming.Subscription
-
- getAckTimeout() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the ACK timeout.
- getAckWait() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the timeout for waiting for an ACK from the cluster's point of view for delivered
messages.
- getClientId() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the client ID of the current NATS streaming session.
- getClusterId() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the cluster ID of the current NATS streaming session.
- getConnectionListener() - Method in class io.nats.streaming.StreamingConnectionFactory
-
- getConnectTimeout() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the connect timeout interval in milliseconds.
- getCrc32() - Method in class io.nats.streaming.Message
-
Returns the CRC32 checksum for the message.
- getData() - Method in class io.nats.streaming.Message
-
Returns the message payload data.
- getDiscoverPrefix() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the currently configured discover prefix string.
- getDispatcherName() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns name of the dispatcher to use for this subscription.
- getDurableName() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the name of the durable subscriber.
- getErrorListener() - Method in class io.nats.streaming.StreamingConnectionFactory
-
- getMaxInFlight() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the maximum number of messages the cluster will send without an ACK.
- getMaxPubAcksInFlight() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the maximum number of publish ACKs that may be in flight at any point in time.
- getNatsConnection() - Method in interface io.nats.streaming.StreamingConnection
-
Returns the underlying NATS connection.
- getNatsConnection() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the NATS StreamingConnection, if set.
- getNatsUrl() - Method in class io.nats.streaming.StreamingConnectionFactory
-
Returns the NATS connection URL.
- getOptions() - Method in interface io.nats.streaming.Subscription
-
Returns the SubscriptionOptions
object for this Subscription
object.
- getQueue() - Method in interface io.nats.streaming.Subscription
-
Returns the optional queue group name.
- getReplyTo() - Method in class io.nats.streaming.Message
-
Returns the reply subject.
- getSequence() - Method in class io.nats.streaming.Message
-
Returns the message sequence number.
- getStartAt() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the desired start position for the message stream.
- getStartSequence() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the desired start sequence position.
- getStartTime() - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the desired start time position.
- getStartTime(TimeUnit) - Method in class io.nats.streaming.SubscriptionOptions
-
Returns the desired start time position in the requested units.
- getSubject() - Method in class io.nats.streaming.Message
-
Returns the message subject.
- getSubject() - Method in interface io.nats.streaming.Subscription
-
Retrieves the subject of interest from the Subscription
object.
- getSubscriptionTimeout() - Method in class io.nats.streaming.SubscriptionOptions
-
- getTimestamp() - Method in class io.nats.streaming.Message
-
The message timestamp in nanoseconds.
- setAckTimeout(Duration) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the ACK timeout duration.
- setAckTimeout(long, TimeUnit) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the ACK timeout in the specified time unit.
- setClientId(String) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the client ID for the current NATS streaming session.
- setClusterId(String) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the cluster ID of the current NATS streaming session.
- setConnectionListener(ConnectionListener) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Set a connection listener for the underlying nats connection.
- setConnectTimeout(Duration) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the connect timeout duration.
- setConnectTimeout(long, TimeUnit) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the connect timeout in the specified time unit.
- setData(byte[]) - Method in class io.nats.streaming.Message
-
Sets the message payload data.
- setData(byte[], int, int) - Method in class io.nats.streaming.Message
-
Sets the message payload data.
- setDiscoverPrefix(String) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the discover prefix string that is used to establish a nats streaming session.
- setErrorListener(ErrorListener) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Set a error listener for the underlying nats connection.
- setMaxPubAcksInFlight(int) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the maximum number of publish ACKs that may be in flight at any point in time.
- setNatsConnection(Connection) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the NATS StreamingConnection.
- setNatsUrl(String) - Method in class io.nats.streaming.StreamingConnectionFactory
-
Sets the NATS URL.
- setReplyTo(String) - Method in class io.nats.streaming.Message
-
Sets the message reply subject.
- setSubject(String) - Method in class io.nats.streaming.Message
-
Sets the message subject.
- startAtSequence(long) - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Specifies the sequence number from which to start receiving messages.
- startAtTime(Instant) - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Specifies the desired start time position using java.time.Instant
.
- startAtTimeDelta(long, TimeUnit) - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Specifies the desired delta start time position in the desired unit.
- startAtTimeDelta(Duration) - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Specifies the desired delta start time as a Duration
.
- startWithLastReceived() - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Specifies that message delivery should start with the last (most recent) message stored
for this subject.
- StreamingConnection - Interface in io.nats.streaming
-
A StreamingConnection
object is a client's active connection to the nats streaming
data system.
- StreamingConnectionFactory - Class in io.nats.streaming
-
A StreamingConnectionFactory
object encapsulates a set of connection configuration
options.
- StreamingConnectionFactory() - Constructor for class io.nats.streaming.StreamingConnectionFactory
-
- StreamingConnectionFactory(String, String) - Constructor for class io.nats.streaming.StreamingConnectionFactory
-
- subscribe(String, MessageHandler) - Method in interface io.nats.streaming.StreamingConnection
-
Creates a
Subscription
with interest in a given subject, assigns the callback, and
immediately starts receiving messages.
- subscribe(String, MessageHandler, SubscriptionOptions) - Method in interface io.nats.streaming.StreamingConnection
-
Creates a
Subscription
with interest in a given subject using the given
SubscriptionOptions
, assigns the callback, and immediately starts receiving messages.
- subscribe(String, String, MessageHandler) - Method in interface io.nats.streaming.StreamingConnection
-
Creates a Subscription
in the queue group specified by queue
with interest in
a given subject, assigns the message callback, and immediately starts receiving messages.
- subscribe(String, String, MessageHandler, SubscriptionOptions) - Method in interface io.nats.streaming.StreamingConnection
-
Creates a Subscription
in the queue group specified by queue
with interest in
a given subject, assigns the message callback, and immediately starts receiving messages.
- Subscription - Interface in io.nats.streaming
-
A client uses a Subscription
object to receive messages that have been published to a
subject.
- SubscriptionOptions - Class in io.nats.streaming
-
A SubscriptionOptions object defines the configurable parameters of a STAN Subscription object.
- SubscriptionOptions.Builder - Class in io.nats.streaming
-
A Builder implementation for creating an immutable SubscriptionOptions
object.
- subscriptionTimeout(Duration) - Method in class io.nats.streaming.SubscriptionOptions.Builder
-
Sets the amount of time the subscription will wait during creation on a network failure.