Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W Z _ 

A

AccountLimits - Class in io.nats.client.api
Represents the JetStream Account Limits
AccountStatistics - Class in io.nats.client.api
The JetStream Account Statistics
AccountStatistics(Message) - Constructor for class io.nats.client.api.AccountStatistics
 
ack() - Method in interface io.nats.client.Message
ack acknowledges a JetStream messages received from a Consumer, indicating the message should not be received again later.
ACK_FLOOR - Static variable in interface io.nats.client.support.ApiConstants
 
ACK_POLICY - Static variable in interface io.nats.client.support.ApiConstants
 
ACK_POLICY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
ACK_WAIT - Static variable in interface io.nats.client.support.ApiConstants
 
ACK_WAIT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
AckPolicy - Enum in io.nats.client.api
Represents the Ack Policy of a consumer
ackPolicy - Variable in class io.nats.client.api.ConsumerConfiguration
 
ackPolicy(AckPolicy) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the acknowledgement policy of the ConsumerConfiguration.
ackPolicyWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether ack policy for this consumer configuration was set or left unset
ackSync(Duration) - Method in interface io.nats.client.Message
ack acknowledges a JetStream messages received from a Consumer, indicating the message should not be received again later.
ackWait - Variable in class io.nats.client.api.ConsumerConfiguration
 
ackWait(Duration) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the acknowledgement wait duration of the ConsumerConfiguration.
ackWait(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the acknowledgement wait duration of the ConsumerConfiguration.
ACTIVE - Static variable in interface io.nats.client.support.ApiConstants
 
ACTIVE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
addDurations(StringBuilder, String, List<Duration>) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addField(StringBuilder, String, String) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addField(StringBuilder, String, Boolean) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addField(StringBuilder, String, Integer) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addField(StringBuilder, String, Long) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addField(StringBuilder, String, JsonSerializable) - Static method in class io.nats.client.support.JsonUtils
Appends a json object to a string builder.
addField(StringBuilder, String, ZonedDateTime) - Static method in class io.nats.client.support.JsonUtils
Appends a date/time to a string builder as a rfc 3339 formatted field.
addFieldAsNanos(StringBuilder, String, Duration) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addFieldEvenEmpty(StringBuilder, String, String) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addFieldWhenGtZero(StringBuilder, String, Integer) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addFieldWhenGtZero(StringBuilder, String, Long) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addFldWhenTrue(StringBuilder, String, Boolean) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addJsons(StringBuilder, String, List<? extends JsonSerializable>) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addOrUpdateConsumer(String, ConsumerConfiguration) - Method in interface io.nats.client.JetStreamManagement
Loads or creates a consumer.
addSources(Source...) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the sources in the StreamConfiguration.
addSources(Collection<Source>) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the sources in the StreamConfiguration.
addStream(StreamConfiguration) - Method in interface io.nats.client.JetStreamManagement
Loads or creates a stream.
addStrings(StringBuilder, String, String[]) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addStrings(StringBuilder, String, List<String>) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
addSubjects(String...) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the subjects in the StreamConfiguration.
addSubjects(Collection<String>) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the subjects in the StreamConfiguration.
ALLOW_ROLLUP_HDRS - Static variable in interface io.nats.client.support.ApiConstants
 
ALLOW_ROLLUP_HDRS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
allowRollup(boolean) - Method in class io.nats.client.api.StreamConfiguration.Builder
Set whether to allow the rollup feature for a stream
allSubjects() - Static method in class io.nats.client.api.StreamInfoOptions
Create options that get subject information, filtering for all subjects.
allSubjects() - Method in class io.nats.client.api.StreamInfoOptions.Builder
Set the subjects filter to >, which turns on getting subject info.
API - Static variable in interface io.nats.client.support.ApiConstants
 
API_RE - Static variable in interface io.nats.client.support.ApiConstants
 
ApiConstants - Interface in io.nats.client.support
 
ApiResponse<T> - Class in io.nats.client.api
 
ApiResponse(Message) - Constructor for class io.nats.client.api.ApiResponse
 
ApiResponse(String) - Constructor for class io.nats.client.api.ApiResponse
 
ApiResponse() - Constructor for class io.nats.client.api.ApiResponse
 
append(int) - Method in class io.nats.client.support.ByteArrayBuilder
Append a String representation of the number.
append(String) - Method in class io.nats.client.support.ByteArrayBuilder
Append a String with the default charset.
append(String, Charset) - Method in class io.nats.client.support.ByteArrayBuilder
Append a String with specified charset.
append(CharBuffer) - Method in class io.nats.client.support.ByteArrayBuilder
Append a CharBuffer with default charset.
append(CharBuffer, Charset) - Method in class io.nats.client.support.ByteArrayBuilder
Append a CharBuffer with specified charset.
append(byte) - Method in class io.nats.client.support.ByteArrayBuilder
Append a byte as is
append(byte[]) - Method in class io.nats.client.support.ByteArrayBuilder
Append a byte array
append(byte[], int) - Method in class io.nats.client.support.ByteArrayBuilder
Append a byte array
append(byte[], int, int) - Method in class io.nats.client.support.ByteArrayBuilder
Append a byte array
append(ByteArrayBuilder) - Method in class io.nats.client.support.ByteArrayBuilder
 
AUTH_REQUIRED - Static variable in interface io.nats.client.support.ApiConstants
 
AUTH_REQUIRED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
AuthenticationException - Exception in io.nats.client
AuthenticationException is used when the connect process fails due to an authentication problem.
AuthenticationException(String) - Constructor for exception io.nats.client.AuthenticationException
Create a new AuthenticationException.
AuthHandler - Interface in io.nats.client
NATS provides a challenge-response based authentication scheme based on NKeys.
authHandler(AuthHandler) - Method in class io.nats.client.Options.Builder
Set the AuthHandler to sign the server nonce for authentication in nonce-mode.

B

backoff - Variable in class io.nats.client.api.ConsumerConfiguration
 
backoff(Duration...) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Set the list of backoff.
backoff(long...) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Set the list of backoff.
BACKOFF - Static variable in interface io.nats.client.support.ApiConstants
 
base32Decode(char[]) - Static method in class io.nats.client.support.Encoding
 
base32Encode(byte[]) - Static method in class io.nats.client.support.Encoding
 
base64Encode(byte[]) - Static method in class io.nats.client.support.Encoding
 
beginFormattedJson() - Static method in class io.nats.client.support.JsonUtils
 
beginJson() - Static method in class io.nats.client.support.JsonUtils
 
beginJsonPrefixed(String) - Static method in class io.nats.client.support.JsonUtils
 
bind(String, String) - Static method in class io.nats.client.PullSubscribeOptions
Create PullSubscribeOptions where you are binding to a specific stream, specific durable and are using bind mode
bind(String) - Static method in class io.nats.client.PushSubscribeOptions
Deprecated.
This method is no longer used as bind has a different meaning. See PushSubscribeOptions.stream(String) instead.
bind(String, String) - Static method in class io.nats.client.PushSubscribeOptions
Macro to create a PushSubscribeOptions where you are binding to an existing stream and durable consumer.
bind - Variable in class io.nats.client.SubscribeOptions
 
bind(boolean) - Method in class io.nats.client.SubscribeOptions.Builder
Specify the to attach in direct mode
boolean_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
bucket - Variable in class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
BucketAndKey(Message) - Constructor for class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
BucketAndKey(String) - Constructor for class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
bufferSize(int) - Method in class io.nats.client.Options.Builder
Sets the initial size for buffers in the connection, primarily for testing.
build() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Builds the ConsumerConfiguration
build() - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Builds the KeyValueConfiguration
build() - Method in class io.nats.client.api.KeyValuePurgeOptions.Builder
Build the Key Value Purge Options
build() - Method in class io.nats.client.api.Mirror.Builder
 
build() - Method in class io.nats.client.api.Source.Builder
 
build() - Method in class io.nats.client.api.StreamConfiguration.Builder
Builds the StreamConfiguration
build() - Method in class io.nats.client.api.StreamInfoOptions.Builder
Build the options
build() - Method in class io.nats.client.JetStreamOptions.Builder
Builds the JetStream options.
build() - Method in class io.nats.client.KeyValueOptions.Builder
Builds the JetStream options.
build() - Method in class io.nats.client.Options.Builder
Build an Options object from this Builder.
build() - Method in class io.nats.client.PublishOptions.Builder
Builds the publish options.
build() - Method in class io.nats.client.PullSubscribeOptions.Builder
Builds the pull subscribe options.
build() - Method in class io.nats.client.PurgeOptions.Builder
 
build() - Method in class io.nats.client.PushSubscribeOptions.Builder
Builds the push subscribe options.
build() - Method in class io.nats.client.SubscribeOptions.Builder
Builds the subscribe options.
buildDataPort() - Method in class io.nats.client.Options
 
builder() - Static method in class io.nats.client.api.ConsumerConfiguration
Creates a builder for the publish options.
builder(ConsumerConfiguration) - Static method in class io.nats.client.api.ConsumerConfiguration
Creates a builder for the publish options.
Builder() - Constructor for class io.nats.client.api.ConsumerConfiguration.Builder
 
Builder(ConsumerConfiguration) - Constructor for class io.nats.client.api.ConsumerConfiguration.Builder
 
builder() - Static method in class io.nats.client.api.KeyValueConfiguration
Creates a builder for the Key Value Configuration.
builder(KeyValueConfiguration) - Static method in class io.nats.client.api.KeyValueConfiguration
Creates a builder to copy the key value configuration.
Builder() - Constructor for class io.nats.client.api.KeyValueConfiguration.Builder
Default Builder
Builder(KeyValueConfiguration) - Constructor for class io.nats.client.api.KeyValueConfiguration.Builder
Construct the builder by copying another configuration
builder() - Static method in class io.nats.client.api.KeyValuePurgeOptions
Creates a builder for the Key Value Purge Options.
Builder() - Constructor for class io.nats.client.api.KeyValuePurgeOptions.Builder
 
builder() - Static method in class io.nats.client.api.Mirror
 
Builder() - Constructor for class io.nats.client.api.Mirror.Builder
 
builder() - Static method in class io.nats.client.api.Source
 
Builder() - Constructor for class io.nats.client.api.Source.Builder
 
builder() - Static method in class io.nats.client.api.StreamConfiguration
Creates a builder for the stream configuration.
builder(StreamConfiguration) - Static method in class io.nats.client.api.StreamConfiguration
Creates a builder to copy the stream configuration.
Builder() - Constructor for class io.nats.client.api.StreamConfiguration.Builder
Default Builder
Builder(StreamConfiguration) - Constructor for class io.nats.client.api.StreamConfiguration.Builder
Update Builder, useful if you need to update a configuration
builder() - Static method in class io.nats.client.api.StreamInfoOptions
 
Builder() - Constructor for class io.nats.client.api.StreamInfoOptions.Builder
Default Builder
builder() - Static method in class io.nats.client.JetStreamOptions
Creates a builder for the publish options.
builder(JetStreamOptions) - Static method in class io.nats.client.JetStreamOptions
Creates a builder to copy the options.
Builder() - Constructor for class io.nats.client.JetStreamOptions.Builder
 
Builder(JetStreamOptions) - Constructor for class io.nats.client.JetStreamOptions.Builder
 
builder() - Static method in class io.nats.client.KeyValueOptions
Creates a builder for the publish options.
builder(KeyValueOptions) - Static method in class io.nats.client.KeyValueOptions
Creates a builder to copy the options.
Builder() - Constructor for class io.nats.client.KeyValueOptions.Builder
 
Builder(KeyValueOptions) - Constructor for class io.nats.client.KeyValueOptions.Builder
 
Builder() - Constructor for class io.nats.client.Options.Builder
Constructs a new Builder with the default values.
Builder(Properties) - Constructor for class io.nats.client.Options.Builder
Constructs a new Builder from a Properties object.
builder() - Static method in class io.nats.client.PublishOptions
Creates a builder for the publish options.
Builder() - Constructor for class io.nats.client.PublishOptions.Builder
Constructs a new publish options Builder with the default values.
Builder(Properties) - Constructor for class io.nats.client.PublishOptions.Builder
Constructs a builder from properties
builder() - Static method in class io.nats.client.PullSubscribeOptions
Macro to start a PullSubscribeOptions builder
Builder() - Constructor for class io.nats.client.PullSubscribeOptions.Builder
 
builder() - Static method in class io.nats.client.PurgeOptions
Creates a builder for the purge options
Builder() - Constructor for class io.nats.client.PurgeOptions.Builder
 
builder() - Static method in class io.nats.client.PushSubscribeOptions
Macro to start a PushSubscribeOptions builder
Builder() - Constructor for class io.nats.client.PushSubscribeOptions.Builder
 
Builder() - Constructor for class io.nats.client.SubscribeOptions.Builder
 
buildPattern(String, JsonUtils.FieldType) - Static method in class io.nats.client.support.JsonUtils
Builds a json parsing pattern
buildPattern(String, String) - Static method in class io.nats.client.support.JsonUtils
 
buildProtocolConnectOptionsString(String, boolean, byte[]) - Method in class io.nats.client.Options
Create the options string sent with a connect message.
buildPullSubscribeOptions() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Builds the PullSubscribeOptions with this configuration
buildPushSubscribeOptions() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Builds the PushSubscribeOptions with this configuration
ByteArrayBuilder - Class in io.nats.client.support
 
ByteArrayBuilder() - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with the initial size and allocation size of 32 and the character set StandardCharsets.US_ASCII
ByteArrayBuilder(int) - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with the supplied initial size, allocation size of 32 and the character set StandardCharsets.US_ASCII
ByteArrayBuilder(byte[]) - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with an existing byte array using it's length as the initial length, the allocation size the larger of the length and 32, and the character set StandardCharsets.US_ASCII Then initializes the buffer with the supplied bytes
ByteArrayBuilder(Charset) - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with the supplied character set with the default initial size and allocation size determined by that character set
ByteArrayBuilder(int, Charset) - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with the supplied initial size and character set with the allocation size determined by that character set.
ByteArrayBuilder(int, int, Charset) - Constructor for class io.nats.client.support.ByteArrayBuilder
Construct the ByteArrayBuilder with the supplied initial size, allocation size and character set
BYTES - Static variable in interface io.nats.client.support.ApiConstants
 
BYTES_RE - Static variable in interface io.nats.client.support.ApiConstants
 
bytesToLong(byte[]) - Static method in class io.nats.client.support.RandomUtils
 

C

cancelClosing() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
cancelTimedOut() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
clear() - Method in class io.nats.client.NKey
Clear the seed and public key char arrays by filling them with random bytes then zero-ing them out.
clear() - Method in class io.nats.client.support.ByteArrayBuilder
Clear the buffer, resetting it's length
clearDroppedCount() - Method in interface io.nats.client.Consumer
Reset the drop count to 0.
clearExpected() - Method in class io.nats.client.PublishOptions.Builder
Clears the expected so the build can be re-used.
CLIENT_ID - Static variable in interface io.nats.client.support.ApiConstants
 
CLIENT_ID_RE - Static variable in interface io.nats.client.support.ApiConstants
 
CLIENT_IP - Static variable in interface io.nats.client.support.ApiConstants
 
CLIENT_IP_RE - Static variable in interface io.nats.client.support.ApiConstants
 
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
clientSideLimitChecks(boolean) - Method in class io.nats.client.Options.Builder
Set client side limit checks.
clientSideLimitChecks() - Method in class io.nats.client.Options
 
close() - Method in interface io.nats.client.Connection
Close the connection and release all blocking calls like flush and nextMessage.
CLOSE - Static variable in class io.nats.client.support.JsonUtils
 
closeDispatcher(Dispatcher) - Method in interface io.nats.client.Connection
Close a dispatcher.
CLUSTER - Static variable in interface io.nats.client.support.ApiConstants
 
CLUSTER_RE - Static variable in interface io.nats.client.support.ApiConstants
 
ClusterInfo - Class in io.nats.client.api
Information about the cluster a stream is part of.
CODE - Static variable in interface io.nats.client.support.ApiConstants
 
CODE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
COLON - Static variable in interface io.nats.client.support.NatsConstants
 
COLON_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
computeAmountToAllocate(int, int) - Method in class io.nats.client.support.ByteArrayBuilder
 
CONFIG - Static variable in interface io.nats.client.support.ApiConstants
 
configuration(ConsumerConfiguration) - Method in class io.nats.client.SubscribeOptions.Builder
The consumer configuration.
connect() - Static method in class io.nats.client.Nats
Connect to the default URL, Options.DEFAULT_URL, with all of the default options.
connect(String) - Static method in class io.nats.client.Nats
The Java client generally expects URLs of the form nats://hostname:port
connect(String, AuthHandler) - Static method in class io.nats.client.Nats
Connect to the specified URL with the specified username, password and default options.
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.
CONNECT_SP_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
CONNECT_URLS - Static variable in interface io.nats.client.support.ApiConstants
 
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
Set the ConnectionListener to receive asynchronous notifications of disconnect events.
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.
CONSUMER_COUNT - Static variable in interface io.nats.client.support.ApiConstants
 
CONSUMER_COUNT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
CONSUMER_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
CONSUMER_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
CONSUMER_STALLED_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
consumerConfig - Variable in class io.nats.client.SubscribeOptions
 
ConsumerConfiguration - Class in io.nats.client.api
The ConsumerConfiguration class specifies the configuration for creating a JetStream consumer on the client and if necessary the server.
ConsumerConfiguration(ConsumerConfiguration) - Constructor for class io.nats.client.api.ConsumerConfiguration
 
ConsumerConfiguration.Builder - Class in io.nats.client.api
ConsumerConfiguration is created using a Builder.
ConsumerConfiguration.DurationChangeHelper - Enum in io.nats.client.api
INTERNAL CLASS ONLY, SUBJECT TO CHANGE Helper class to manage min / default / unset / server values.
ConsumerConfiguration.LongChangeHelper - Enum in io.nats.client.api
INTERNAL CLASS ONLY, SUBJECT TO CHANGE Helper class to manage min / default / unset / server values.
ConsumerConfiguration.UlongChangeHelper - Enum in io.nats.client.api
INTERNAL CLASS ONLY, SUBJECT TO CHANGE Helper class to manage min / default / unset / server values.
ConsumerInfo - Class in io.nats.client.api
The ConsumerInfo class returns information about a JetStream consumer.
ConsumerInfo(Message) - Constructor for class io.nats.client.api.ConsumerInfo
 
ConsumerInfo(String) - Constructor for class io.nats.client.api.ConsumerInfo
 
CONSUMERS - Static variable in interface io.nats.client.support.ApiConstants
 
CONSUMERS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
copyTo(byte[], int) - Method in class io.nats.client.support.ByteArrayBuilder
Copy the contents of the buffer to the byte array starting at the destination positions supplied.
CR - Static variable in interface io.nats.client.support.NatsConstants
 
create(String, byte[]) - Method in interface io.nats.client.KeyValue
Put as the value for a key iff the key does not exist (there is no history) or is deleted (history shows the key is deleted)
create(KeyValueConfiguration) - Method in interface io.nats.client.KeyValueManagement
Create a key value store.
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.
CREATED - Static variable in interface io.nats.client.support.ApiConstants
 
CREATED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
createDispatcher(MessageHandler) - Method in interface io.nats.client.Connection
Create a Dispatcher for this connection.
createDispatcher() - Method in interface io.nats.client.Connection
Convenience method to create a dispatcher with no default handler.
createInbox() - Method in interface io.nats.client.Connection
 
createOpenTLSContext() - Static method in class io.nats.client.support.SSLUtils
 
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.
createURIForServer(String) - Method in class io.nats.client.Options
 
createUser(SecureRandom) - Static method in class io.nats.client.NKey
Create a User NKey from the provided random number generator.
credentials(String) - Static method in class io.nats.client.Nats
Create an authhandler from a creds file.
credentials(String, String) - Static method in class io.nats.client.Nats
Create an authhandler from a jwt file and an nkey file.
CRLF - Static variable in interface io.nats.client.support.NatsConstants
 
CRLF_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
CURRENT - Static variable in interface io.nats.client.support.ApiConstants
 
CURRENT_RE - Static variable in interface io.nats.client.support.ApiConstants
 

D

DATA - Static variable in interface io.nats.client.support.ApiConstants
 
DATA_RE - Static variable in interface io.nats.client.support.ApiConstants
 
dataPortType(String) - Method in class io.nats.client.Options.Builder
The class to use for this connections data port.
DateTimeUtils - Class in io.nats.client.support
Internal json parsing helpers.
DEFAULT_ACK_POLICY - Static variable in class io.nats.client.api.ConsumerConfiguration
 
DEFAULT_API_PREFIX - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
DEFAULT_ASCII_ALLOCATION - Static variable in class io.nats.client.support.ByteArrayBuilder
 
DEFAULT_BUFFER_SIZE - Static variable in class io.nats.client.Options
Default size for buffers in the connection, not as available as other settings, this is primarily changed for testing, getBufferSize().
DEFAULT_CONNECTION_TIMEOUT - Static variable in class io.nats.client.Options
Default connection timeout, see getConnectionTimeout().
DEFAULT_DATA_PORT_TYPE - Static variable in class io.nats.client.Options
Default dataport class, which will use a TCP socket, getDataPortType().
DEFAULT_DELIVER_POLICY - Static variable in class io.nats.client.api.ConsumerConfiguration
 
DEFAULT_DISCARD_MESSAGES_WHEN_OUTGOING_QUEUE_FULL - Static variable in class io.nats.client.Options
This value is used internally to discard messages when the outgoing queue is full.
DEFAULT_INBOX_PREFIX - Static variable in class io.nats.client.Options
Default prefix used for inboxes, you can change this to manage authorization of subjects.
DEFAULT_JS_OPTIONS - Static variable in class io.nats.client.JetStreamOptions
 
DEFAULT_MAX_BYTES - Static variable in interface io.nats.client.Consumer
The default number of bytes a consumer will hold before it starts to drop messages.
DEFAULT_MAX_CONTROL_LINE - Static variable in class io.nats.client.Options
The default length, 4096 bytes, the client will allow in an outgoing protocol control line, getMaxControlLine().
DEFAULT_MAX_MESSAGES - Static variable in interface io.nats.client.Consumer
The default number of messages a consumer will hold before it starts to drop them.
DEFAULT_MAX_MESSAGES_IN_OUTGOING_QUEUE - Static variable in class io.nats.client.Options
This value is used internally to limit the number of messages allowed in the outgoing queue.
DEFAULT_MAX_PINGS_OUT - Static variable in class io.nats.client.Options
Default maximum number of pings have not received a response allowed by the client, getMaxPingsOut().
DEFAULT_MAX_RECONNECT - Static variable in class io.nats.client.Options
Default maximum number of reconnect attempts, see getMaxReconnect().
DEFAULT_ORDERED_HEARTBEAT - Static variable in class io.nats.client.SubscribeOptions
 
DEFAULT_OTHER_ALLOCATION - Static variable in class io.nats.client.support.ByteArrayBuilder
 
DEFAULT_PING_INTERVAL - Static variable in class io.nats.client.Options
Default server ping interval.
DEFAULT_PORT - Static variable in class io.nats.client.Options
Default server port.
DEFAULT_RECONNECT_BUF_SIZE - Static variable in class io.nats.client.Options
Default of pending message buffer that is used for buffering messages that are published during a disconnect/reconnect, getReconnectBufferSize().
DEFAULT_RECONNECT_JITTER - Static variable in class io.nats.client.Options
Default wait time before attempting reconnection to the same server, see getReconnectJitter().
DEFAULT_RECONNECT_JITTER_TLS - Static variable in class io.nats.client.Options
Default wait time before attempting reconnection to the same server, see getReconnectJitterTls().
DEFAULT_RECONNECT_WAIT - Static variable in class io.nats.client.Options
Default wait time before attempting reconnection to the same server, see getReconnectWait().
DEFAULT_REPLAY_POLICY - Static variable in class io.nats.client.api.ConsumerConfiguration
 
DEFAULT_REQUEST_CLEANUP_INTERVAL - Static variable in class io.nats.client.Options
Default interval to clean up cancelled/timed out requests.
DEFAULT_SSL_PROTOCOL - Static variable in class io.nats.client.Options
Default SSL protocol used to create an SSLContext if the secure property is used.
DEFAULT_THREAD_NAME_PREFIX - Static variable in class io.nats.client.Options
Default thread name prefix.
DEFAULT_THRESHOLD_MILLIS - Static variable in class io.nats.client.api.KeyValuePurgeOptions
The default time in millis that is used for as the threshold to keep markers.
DEFAULT_TIME - Static variable in class io.nats.client.support.DateTimeUtils
 
DEFAULT_TIMEOUT - Static variable in class io.nats.client.JetStreamOptions
 
DEFAULT_TIMEOUT - Static variable in class io.nats.client.PublishOptions
Use this variable for timeout in publish options.
DEFAULT_URL - Static variable in class io.nats.client.Options
Default server URL.
defaultOptions() - Static method in class io.nats.client.JetStreamOptions
Get an instance of JetStreamOptions with all defaults
delete(String) - Method in interface io.nats.client.KeyValue
Soft deletes the key by placing a delete marker.
delete(String) - Method in interface io.nats.client.KeyValueManagement
Deletes an existing bucket.
DELETE_HEADERS - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
deleteConsumer(String, String) - Method in interface io.nats.client.JetStreamManagement
Deletes a consumer.
DELETED - Static variable in interface io.nats.client.support.ApiConstants
 
DELETED_DETAILS - Static variable in interface io.nats.client.support.ApiConstants
 
deletedDetails() - Method in class io.nats.client.api.StreamInfoOptions.Builder
Turns on getting deleted details
deletedDetails() - Static method in class io.nats.client.api.StreamInfoOptions
Create options that get deleted details.
deleteMarkersNoThreshold() - Method in class io.nats.client.api.KeyValuePurgeOptions.Builder
Set the delete marker threshold to -1 so as to not keep any markers
deleteMarkersThreshold(Duration) - Method in class io.nats.client.api.KeyValuePurgeOptions.Builder
Set the delete marker threshold.
deleteMarkersThreshold(long) - Method in class io.nats.client.api.KeyValuePurgeOptions.Builder
Set the delete marker threshold.
deleteMessage(String, long) - Method in interface io.nats.client.JetStreamManagement
Deletes a message.
deleteStream(String) - Method in interface io.nats.client.JetStreamManagement
Deletes an existing stream.
DELIVER - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_GROUP - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_GROUP_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_POLICY - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_POLICY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_SUBJECT - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVER_SUBJECT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DELIVERED - Static variable in interface io.nats.client.support.ApiConstants
 
deliverGroup(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the group to deliver messages to.
deliverGroup - Variable in class io.nats.client.api.ConsumerConfiguration
 
deliverGroup(String) - Method in class io.nats.client.PushSubscribeOptions.Builder
Setting this specifies deliver group.
deliverPolicy(DeliverPolicy) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the delivery policy of the ConsumerConfiguration.
deliverPolicy - Variable in class io.nats.client.api.ConsumerConfiguration
 
DeliverPolicy - Enum in io.nats.client.api
The delivery policy for this consumer.
deliverPolicyWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether deliver policy of this consumer configuration was set or left unset
deliverSubject(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the subject to deliver messages to.
deliverSubject - Variable in class io.nats.client.api.ConsumerConfiguration
 
deliverSubject(String) - Method in class io.nats.client.PushSubscribeOptions.Builder
Setting this specifies the push model to a delivery subject.
DENY_DELETE - Static variable in interface io.nats.client.support.ApiConstants
 
DENY_DELETE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DENY_PURGE - Static variable in interface io.nats.client.support.ApiConstants
 
DENY_PURGE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
denyDelete(boolean) - Method in class io.nats.client.api.StreamConfiguration.Builder
Set whether to deny deleting messages from the stream
denyPurge(boolean) - Method in class io.nats.client.api.StreamConfiguration.Builder
Set whether to deny purging messages from the stream
description(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the description
description - Variable in class io.nats.client.api.ConsumerConfiguration
 
description(String) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the description of the store.
description(String) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the description
DESCRIPTION - Static variable in interface io.nats.client.support.ApiConstants
 
DESCRIPTION_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DISCARD - Static variable in interface io.nats.client.support.ApiConstants
 
DISCARD_RE - Static variable in interface io.nats.client.support.ApiConstants
 
discardMessagesWhenOutgoingQueueFull() - Method in class io.nats.client.Options.Builder
Enable discard messages when the outgoing queue full.
DiscardPolicy - Enum in io.nats.client.api
Stream discard policies
discardPolicy(DiscardPolicy) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the discard policy in the StreamConfiguration.
Dispatcher - Interface in io.nats.client
This library uses the concept of a Dispatcher to organize message callbacks in a way that the application can control.
domain(String) - Method in class io.nats.client.JetStreamOptions.Builder
Sets the domain for JetStream subjects, creating a standard prefix from that domain in the form $JS.(domain).API.
DOMAIN - Static variable in interface io.nats.client.support.ApiConstants
 
DOMAIN_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DOT - Static variable in interface io.nats.client.support.NatsConstants
 
drain(Duration) - Method in interface io.nats.client.Connection
Drain tells the connection to process in flight messages before closing.
drain(Duration) - Method in interface io.nats.client.Consumer
Drain tells the consumer to process in flight, or cached messages, but stop receiving new ones.
DUPLICATE - Static variable in interface io.nats.client.support.ApiConstants
 
DUPLICATE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
DUPLICATE_WINDOW - Static variable in interface io.nats.client.support.ApiConstants
 
DUPLICATE_WINDOW_RE - Static variable in interface io.nats.client.support.ApiConstants
 
duplicateWindow(Duration) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the duplicate checking window in the the StreamConfiguration.
duplicateWindow(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the duplicate checking window in the the StreamConfiguration.
durable(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the name of the durable subscription.
durable - Variable in class io.nats.client.api.ConsumerConfiguration
 
durable(String) - Method in class io.nats.client.SubscribeOptions.Builder
Sets the durable consumer name for the subscriber.
DURABLE_NAME - Static variable in interface io.nats.client.support.ApiConstants
 
DURABLE_NAME_RE - Static variable in interface io.nats.client.support.ApiConstants
 

E

EMPTY - Static variable in interface io.nats.client.support.NatsConstants
 
EMPTY_BODY - Static variable in interface io.nats.client.support.NatsConstants
 
EMPTY_JSON - Static variable in class io.nats.client.support.JsonUtils
 
emptyAsNull(String) - Static method in class io.nats.client.support.Validator
 
emptyOrNullAs(String, String) - Static method in class io.nats.client.support.Validator
 
Encoding - Class in io.nats.client.support
 
endFormattedJson(StringBuilder) - Static method in class io.nats.client.support.JsonUtils
 
endJson(StringBuilder) - Static method in class io.nats.client.support.JsonUtils
 
endOfData() - Method in interface io.nats.client.api.KeyValueWatcher
Called once if there is no data when the watch is created or if there is data, the first time the watch exhausts all existing data.
ensureCapacity(int) - Method in class io.nats.client.support.ByteArrayBuilder
Ensures that the buffer can accept the number of bytes needed Useful if the size of multiple append operations is known ahead of time therefore reducing the number of possible allocations during those appends
ensureDurationNotLessThanMin(long, Duration, Duration) - Static method in class io.nats.client.support.Validator
 
ensureEndsWithDot(String) - Static method in class io.nats.client.support.Validator
 
ensureNotNullAndNotLessThanMin(Duration, Duration, Duration) - Static method in class io.nats.client.support.Validator
 
equals(Object) - Method in class io.nats.client.api.External
 
equals(Object) - Method in class io.nats.client.api.KeyValueEntry
 
equals(Object) - Method in class io.nats.client.NKey
 
equals(Object) - Method in class io.nats.client.PurgeOptions
 
equals(byte[]) - Method in class io.nats.client.support.ByteArrayBuilder
Determine if a byte array contains the same bytes as this buffer
equals(Object) - Method in class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
ERR_CODE - Static variable in interface io.nats.client.support.ApiConstants
 
ERR_CODE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
Error - Class in io.nats.client.api
Error returned from an api request.
ERROR - Static variable in interface io.nats.client.support.ApiConstants
 
ErrorListener - Interface in io.nats.client
This library groups problems into four 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. Fast Producers One of the connections producers is too fast, and is discarding messages
errorListener(ErrorListener) - Method in class io.nats.client.Options.Builder
Set the ErrorListener to receive asynchronous error events related to this connection.
ErrorListener.FlowControlSource - Enum in io.nats.client
 
errorOccurred(Connection, String) - Method in interface io.nats.client.ErrorListener
NATs related errors that occur asynchronously in the client library are sent to an ErrorListener via errorOccurred.
exceptionOccurred(Connection, Exception) - Method in interface io.nats.client.ErrorListener
Exceptions that occur in the "normal" course of operations are sent to the ErrorListener using exceptionOccurred.
executor(ExecutorService) - Method in class io.nats.client.Options.Builder
Set the ExecutorService used to run threaded tasks.
EXPECTED_LAST_MSG_ID_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
EXPECTED_LAST_SEQ_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
EXPECTED_LAST_SUB_SEQ_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
EXPECTED_STREAM_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
expectedLastMsgId(String) - Method in class io.nats.client.PublishOptions.Builder
Sets the expected last ID of the previously published message.
expectedLastSequence(long) - Method in class io.nats.client.PublishOptions.Builder
Sets the expected message sequence of the publish
expectedLastSubjectSequence(long) - Method in class io.nats.client.PublishOptions.Builder
Sets the expected subject message sequence of the publish
expectedStream(String) - Method in class io.nats.client.PublishOptions.Builder
Sets the expected stream of the publish.
External - Class in io.nats.client.api
External configuration referencing a stream source in another account
EXTERNAL - Static variable in interface io.nats.client.support.ApiConstants
 
extractBucketName(String) - Static method in class io.nats.client.support.NatsKeyValueUtil
 

F

fetch(int, Duration) - Method in interface io.nats.client.JetStreamSubscription
Fetch a list of messages up to the batch size, waiting no longer than maxWait.
fetch(int, long) - Method in interface io.nats.client.JetStreamSubscription
Fetch a list of messages up to the batch size, waiting no longer than maxWait.
FILTER - Static variable in interface io.nats.client.support.ApiConstants
 
FILTER_SUBJECT - Static variable in interface io.nats.client.support.ApiConstants
 
FILTER_SUBJECT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
filterSubject(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the filter subject of the ConsumerConfiguration.
filterSubject - Variable in class io.nats.client.api.ConsumerConfiguration
 
filterSubjects(String) - Method in class io.nats.client.api.StreamInfoOptions.Builder
Set the subjects filter, which turns on getting subject info.
filterSubjects(String) - Static method in class io.nats.client.api.StreamInfoOptions
Create options that get subject information, filtering for subjects.
FIRST_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
FIRST_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
FIRST_TS - Static variable in interface io.nats.client.support.ApiConstants
 
FIRST_TS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
FLOW_CONTROL - Static variable in interface io.nats.client.support.ApiConstants
 
FLOW_CONTROL_RE - Static variable in interface io.nats.client.support.ApiConstants
 
FLOW_CONTROL_TEXT - Static variable in class io.nats.client.support.Status
 
FLOW_OR_HEARTBEAT_STATUS_CODE - Static variable in class io.nats.client.support.Status
 
flowControl(Duration) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
set the flow control on and set the idle heartbeat
flowControl(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
set the flow control on and set the idle heartbeat
flowControl - Variable in class io.nats.client.api.ConsumerConfiguration
 
flowControlProcessed(Connection, JetStreamSubscription, String, ErrorListener.FlowControlSource) - Method in interface io.nats.client.ErrorListener
Called by the connection when a flow control is processed.
flowControlWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether flow control for this consumer configuration was set or left unset
flush(Duration) - Method in interface io.nats.client.Connection
Flush the connection's buffer of outgoing messages, including sending a protocol message to and from the server.
flushBuffer() - Method in interface io.nats.client.Connection
Immediately flushes the underlying connection buffer if the connection is valid.
forBuilder(Duration) - Method in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
forBuilder(Long) - Method in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
 
forBuilder(Long) - Method in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
 
fromNow(long) - Static method in class io.nats.client.support.DateTimeUtils
 
fromNow(Duration) - Static method in class io.nats.client.support.DateTimeUtils
 
fromPrefix(int) - Static method in enum io.nats.client.NKey.Type
 
fromPublicKey(char[]) - Static method in class io.nats.client.NKey
Create an NKey object from the encoded public key.
fromSeed(char[]) - Static method in class io.nats.client.NKey
Creates an NKey object from a string encoded seed.

G

get(String) - Static method in enum io.nats.client.api.AckPolicy
 
get(String) - Static method in enum io.nats.client.api.DeliverPolicy
 
get(String) - Static method in enum io.nats.client.api.DiscardPolicy
 
get(String) - Static method in enum io.nats.client.api.ReplayPolicy
 
get(String) - Static method in enum io.nats.client.api.RetentionPolicy
 
get(String) - Static method in enum io.nats.client.api.StorageType
 
get(String) - Method in interface io.nats.client.KeyValue
Get the entry for a key
get(String, long) - Method in interface io.nats.client.KeyValue
Get the specific revision of an entry for a key.
getAccountStatistics() - Method in interface io.nats.client.JetStreamManagement
Gets the account statistics for the logged in account.
getAckFloor() - Method in class io.nats.client.api.ConsumerInfo
 
getAckPolicy() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the acknowledgment policy of this consumer configuration.
getAckWait() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the acknowledgment wait of this consumer configuration.
getActive() - Method in class io.nats.client.api.PeerInfo
 
getAllowRollup() - Method in class io.nats.client.api.StreamConfiguration
Get the flag indicating whether or not the stream allows rollup.
getApi() - Method in class io.nats.client.api.External
The subject prefix that imports the other account $JS.API.CONSUMER.> subjects
getApiErrorCode() - Method in class io.nats.client.api.ApiResponse
 
getApiErrorCode() - Method in class io.nats.client.api.Error
 
getApiErrorCode() - Method in exception io.nats.client.JetStreamApiException
Get the error code from the response
getAuthHandler() - Method in class io.nats.client.Options
 
getBackingConfig() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the stream configuration for the stream which backs the bucket
getBackingStore() - Method in class io.nats.client.api.KeyValueStatus
Gets the name of the type of backing store, currently only "JetStream"
getBackingStreamInfo() - Method in class io.nats.client.api.KeyValueStatus
Gets the info for the stream which backs the bucket.
getBackoff() - Method in class io.nats.client.api.ConsumerConfiguration
Get the backoff list; may be empty, will never be null.
getBucket() - Method in class io.nats.client.api.KeyValueEntry
 
getBucketInfo(String) - Method in interface io.nats.client.KeyValueManagement
Gets the info for an existing bucket.
getBucketName() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the name of this bucket.
getBucketName() - Method in class io.nats.client.api.KeyValueStatus
Get the name of the bucket
getBucketName() - Method in interface io.nats.client.KeyValue
Get the name of the bucket.
getBucketNames() - Method in interface io.nats.client.KeyValueManagement
Get the list of bucket names.
getBufferSize() - Method in class io.nats.client.Options
 
getByteCount() - Method in class io.nats.client.api.StreamState
Gets the byte count of the stream.
getCalculatedPending() - Method in class io.nats.client.api.ConsumerInfo
 
getClientId() - Method in class io.nats.client.api.ServerInfo
 
getClientIp() - Method in class io.nats.client.api.ServerInfo
 
getCluster() - Method in class io.nats.client.api.Placement
The desired cluster name to place the stream.
getCluster() - Method in class io.nats.client.api.ServerInfo
 
getClusterInfo() - Method in class io.nats.client.api.ConsumerInfo
 
getClusterInfo() - Method in class io.nats.client.api.StreamInfo
 
getCode() - Method in class io.nats.client.api.Error
 
getCode() - Method in class io.nats.client.support.Status
 
getConfiguration() - Method in class io.nats.client.api.KeyValueStatus
Gets the configuration object directly
getConfiguration() - Method in class io.nats.client.api.StreamInfo
Gets the stream configuration.
getConnectedUrl() - Method in interface io.nats.client.Connection
 
getConnection() - Method in interface io.nats.client.Message
 
getConnectionListener() - Method in class io.nats.client.Options
 
getConnectionName() - Method in class io.nats.client.Options
 
getConnectionTimeout() - Method in class io.nats.client.Options
 
getConnectURLs() - Method in class io.nats.client.api.ServerInfo
 
getConsumerConfiguration() - Method in class io.nats.client.api.ConsumerInfo
 
getConsumerConfiguration() - Method in class io.nats.client.SubscribeOptions
Gets the consumer configuration.
getConsumerCount() - Method in class io.nats.client.api.StreamState
Gets the number of consumers attached to the stream.
getConsumerInfo(String, String) - Method in interface io.nats.client.JetStreamManagement
Gets the info for an existing consumer.
getConsumerInfo() - Method in interface io.nats.client.JetStreamSubscription
Gets information about the consumer behind this subscription.
getConsumerNames(String) - Method in interface io.nats.client.JetStreamManagement
Return a list of consumers by name
getConsumers() - Method in class io.nats.client.api.AccountStatistics
Gets the number of consumers used by the JetStream deployment.
getConsumers(String) - Method in interface io.nats.client.JetStreamManagement
Return a list of ConsumerInfo objects.
getConsumerSequence() - Method in class io.nats.client.api.SequencePair
Gets the consumer sequence number.
getCount() - Method in class io.nats.client.api.Subject
Get the subject message count
getCreated() - Method in class io.nats.client.api.KeyValueEntry
 
getCreateTime() - Method in class io.nats.client.api.StreamInfo
Gets the creation time of the stream.
getCreationTime() - Method in class io.nats.client.api.ConsumerInfo
 
getData() - Method in class io.nats.client.api.MessageInfo
Get the message data
getData() - Method in interface io.nats.client.Message
 
getDataLen() - Method in class io.nats.client.api.KeyValueEntry
 
getDataPortType() - Method in class io.nats.client.Options
 
getDeleted() - Method in class io.nats.client.api.StreamState
Get a list of the Deleted objects.
getDeletedCount() - Method in class io.nats.client.api.StreamState
Gets the count of deleted messages
getDeleteMarkersThresholdMillis() - Method in class io.nats.client.api.KeyValuePurgeOptions
The value of the delete marker threshold, in milliseconds.
getDeliver() - Method in class io.nats.client.api.External
The delivery subject to use for the push consumer.
getDelivered() - Method in class io.nats.client.api.ConsumerInfo
 
getDeliveredCount() - Method in interface io.nats.client.Consumer
 
getDeliverGroup() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the deliver group of this consumer configuration.
getDeliverGroup() - Method in class io.nats.client.PushSubscribeOptions
Gets the deliver group held in the consumer configuration.
getDeliverPolicy() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the deliver policy of this consumer configuration.
getDeliverSubject() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the deliver subject of this consumer configuration.
getDeliverSubject() - Method in class io.nats.client.PushSubscribeOptions
Gets the deliver subject held in the consumer configuration.
getDelta() - Method in class io.nats.client.api.KeyValueEntry
 
getDenyDelete() - Method in class io.nats.client.api.StreamConfiguration
Get the flag indicating whether or not deny delete is set for the stream
getDenyPurge() - Method in class io.nats.client.api.StreamConfiguration
Get the flag indicating whether or not deny purge is set for the stream
getDescription() - Method in class io.nats.client.api.ApiResponse
 
getDescription() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the name of the description of this consumer configuration.
getDescription() - Method in class io.nats.client.api.Error
 
getDescription() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the description of this bucket.
getDescription() - Method in class io.nats.client.api.KeyValueStatus
Gets the description of this bucket.
getDescription() - Method in class io.nats.client.api.StreamConfiguration
Gets the description of this stream configuration.
getDiscardPolicy() - Method in class io.nats.client.api.StreamConfiguration
Gets the discard policy for this stream configuration.
getDispatcher() - Method in interface io.nats.client.Subscription
 
getDomain() - Method in class io.nats.client.api.PublishAck
Gets the domain of a stream
getDroppedCount() - Method in interface io.nats.client.Consumer
 
getDroppedCount() - Method in interface io.nats.client.Statistics
 
getDuplicateWindow() - Method in class io.nats.client.api.StreamConfiguration
Gets the duplicate checking window stream configuration.
getDurable() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the name of the durable subscription for this consumer configuration.
getDurable() - Method in class io.nats.client.SubscribeOptions
Gets the durable consumer name held in the consumer configuration.
getDurationList(String, String) - Static method in class io.nats.client.support.JsonUtils
Extract a list durations for list object name.
getEntryCount() - Method in class io.nats.client.api.KeyValueStatus
Get the number of total entries in the bucket, including historical entries
getError() - Method in class io.nats.client.api.ApiResponse
 
getErrorCode() - Method in class io.nats.client.api.ApiResponse
 
getErrorCode() - Method in exception io.nats.client.JetStreamApiException
Get the error code from the response
getErrorDescription() - Method in exception io.nats.client.JetStreamApiException
Get the description from the response
getErrorListener() - Method in class io.nats.client.Options
 
getExecutor() - Method in class io.nats.client.Options
 
getExpectedLastMsgId() - Method in class io.nats.client.PublishOptions
Gets the expected last message ID in the stream.
getExpectedLastSequence() - Method in class io.nats.client.PublishOptions
Gets the expected last sequence number of the stream.
getExpectedLastSubjectSequence() - Method in class io.nats.client.PublishOptions
Gets the expected last subject sequence number of the stream.
getExpectedStream() - Method in class io.nats.client.PublishOptions
Gets the expected stream.
getFilterSubject() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the max filter subject of this consumer configuration.
getFirstSequence() - Method in class io.nats.client.api.StreamState
Gets the first sequence number of the stream.
getFirstTime() - Method in class io.nats.client.api.StreamState
Gets the time stamp of the first message in the stream
getFormatted(Object) - Static method in class io.nats.client.support.JsonUtils
 
getGoVersion() - Method in class io.nats.client.api.ServerInfo
 
getHeaders() - Method in class io.nats.client.api.MessageInfo
Get the headers
getHeaders() - Method in interface io.nats.client.Message
 
getHeaders() - Method in class io.nats.client.support.IncomingHeadersProcessor
 
getHeaderValue() - Method in enum io.nats.client.api.KeyValueOperation
 
getHost() - Method in class io.nats.client.api.ServerInfo
 
getID() - Method in interface io.nats.client.AuthHandler
getID should return a public key associated with a client key known to the server.
getIdleHeartbeat() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the idle heart beat wait time
getInactiveThreshold() - Method in class io.nats.client.api.ConsumerConfiguration
Get the amount of time before the ephemeral consumer is deemed inactive.
getInboxPrefix() - Method in class io.nats.client.Options
 
getInBytes() - Method in interface io.nats.client.Statistics
 
getInMsgs() - Method in interface io.nats.client.Statistics
 
getJetStreamOptions() - Method in class io.nats.client.KeyValueOptions
Gets the JetStream options for a KeyValue store
getJsonObject(String, String) - Static method in class io.nats.client.support.JsonUtils
Extract a JSON object string by object name.
getJsonObject(String, String, String) - Static method in class io.nats.client.support.JsonUtils
 
getJWT() - Method in interface io.nats.client.AuthHandler
getJWT should return the user JWT associated with this connection.
getKeep() - Method in class io.nats.client.PurgeOptions
Get the max number of messages to keep for the Purge Options
getKey() - Method in class io.nats.client.api.KeyValueEntry
 
getKeyPair() - Method in class io.nats.client.NKey
 
getLag() - Method in class io.nats.client.api.PeerInfo
 
getLastError() - Method in interface io.nats.client.Connection
 
getLastMessage(String, String) - Method in interface io.nats.client.JetStreamManagement
Return an info object about the last message for a subject
getLastSequence() - Method in class io.nats.client.api.StreamState
Gets the last sequence of a message in the stream
getLastTime() - Method in class io.nats.client.api.StreamState
Gets the time stamp of the last message in the stream
getLeader() - Method in class io.nats.client.api.ClusterInfo
 
getLongList(String, String) - Static method in class io.nats.client.support.JsonUtils
Extract a list longs for list object name.
getMaxAckPending() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the maximum ack pending configuration.
getMaxAge() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum message age for this stream configuration.
getMaxBatch() - Method in class io.nats.client.api.ConsumerConfiguration
Get the max batch size for the server to allow on pull requests.
getMaxBucketSize() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the maximum number of bytes for this bucket.
getMaxBucketSize() - Method in class io.nats.client.api.KeyValueStatus
Gets the maximum number of bytes for this bucket.
getMaxBytes() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum number of bytes for this stream configuration.
getMaxConsumers() - Method in class io.nats.client.api.AccountLimits
Gets the maximum number of allowed consumers in the JetStream deployment.
getMaxConsumers() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum number of consumers for this stream configuration.
getMaxControlLine() - Method in class io.nats.client.Options
 
getMaxDeliver() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the max delivery amount of this consumer configuration.
getMaxExpires() - Method in class io.nats.client.api.ConsumerConfiguration
Get the max amount of expire time for the server to allow on pull requests.
getMaxHistoryPerKey() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the maximum number of history for any one key.
getMaxHistoryPerKey() - Method in class io.nats.client.api.KeyValueStatus
Gets the maximum number of history for any one key.
getMaxMemory() - Method in class io.nats.client.api.AccountLimits
Gets the maximum amount of memory in the JetStream deployment.
getMaxMessagesInOutgoingQueue() - Method in class io.nats.client.Options
 
getMaxMsgs() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum messages for this stream configuration.
getMaxMsgSize() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum message size for this stream configuration.
getMaxMsgsPerSubject() - Method in class io.nats.client.api.StreamConfiguration
Gets the maximum messages for this stream configuration.
getMaxPayload() - Method in class io.nats.client.api.ServerInfo
 
getMaxPayload() - Method in interface io.nats.client.Connection
MaxPayload returns the size limit that a message payload can have.
getMaxPingsOut() - Method in class io.nats.client.Options
 
getMaxPullWaiting() - Method in class io.nats.client.api.ConsumerConfiguration
Get the number of pulls that can be outstanding on a pull consumer
getMaxReconnect() - Method in class io.nats.client.Options
 
getMaxStorage() - Method in class io.nats.client.api.AccountLimits
Gets the maximum amount of storage in the JetStream deployment.
getMaxStreams() - Method in class io.nats.client.api.AccountLimits
Gets the maximum number of allowed streams in the JetStream deployment.
getMaxValueSize() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the maximum size for an individual value in the bucket.
getMaxValueSize() - Method in class io.nats.client.api.KeyValueStatus
Gets the maximum size for an individual value in the bucket.
getMemory() - Method in class io.nats.client.api.AccountStatistics
Gets the amount of memory used by the JetStream deployment.
getMessage(String, long) - Method in interface io.nats.client.JetStreamManagement
Return an info object about a message
getMessage() - Method in class io.nats.client.support.Status
 
getMessageAlarmTime() - Method in class io.nats.client.SubscribeOptions
Get the time amount of time allowed to elapse without a heartbeat.
getMessageId() - Method in class io.nats.client.PublishOptions
Gets the message ID
getMirror() - Method in class io.nats.client.api.StreamConfiguration
The mirror definition for this stream
getMirrorInfo() - Method in class io.nats.client.api.StreamInfo
 
getMsgCount() - Method in class io.nats.client.api.StreamState
Gets the message count of the stream.
getName() - Method in class io.nats.client.api.ClusterInfo
 
getName() - Method in class io.nats.client.api.ConsumerInfo
 
getName() - Method in class io.nats.client.api.PeerInfo
 
getName() - Method in class io.nats.client.api.StreamConfiguration
Gets the name of this stream configuration.
getName() - Method in class io.nats.client.api.Subject
Get the subject name
getNoAck() - Method in class io.nats.client.api.StreamConfiguration
Gets whether or not acknowledgements are required in this stream configuration.
getNonce() - Method in class io.nats.client.api.ServerInfo
 
getNumAckPending() - Method in class io.nats.client.api.ConsumerInfo
 
getNumPending() - Method in class io.nats.client.api.ConsumerInfo
 
getNumWaiting() - Method in class io.nats.client.api.ConsumerInfo
 
getObjectList(String, String) - Static method in class io.nats.client.support.JsonUtils
Extract a list JSON object strings for list object name.
getOperation() - Method in class io.nats.client.api.KeyValueEntry
 
getOperation(Headers) - Static method in class io.nats.client.support.NatsKeyValueUtil
 
getOperationHeader(Headers) - Static method in class io.nats.client.support.NatsKeyValueUtil
 
getOptions() - Method in interface io.nats.client.Connection
 
getOrDefault(String, KeyValueOperation) - Static method in enum io.nats.client.api.KeyValueOperation
 
getOrUnset(Duration) - Method in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
getOrUnset(Long) - Method in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
 
getOrUnset(Long) - Method in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
 
getOutBytes() - Method in interface io.nats.client.Statistics
 
getOutMsgs() - Method in interface io.nats.client.Statistics
 
getPassword() - Method in class io.nats.client.Options
Deprecated.
converts the char array to a string, use getPasswordChars instead for more security
getPasswordChars() - Method in class io.nats.client.Options
 
getPendingByteCount() - Method in interface io.nats.client.Consumer
 
getPendingByteLimit() - Method in interface io.nats.client.Consumer
 
getPendingMessageCount() - Method in interface io.nats.client.Consumer
 
getPendingMessageLimit() - Method in interface io.nats.client.Consumer
 
getPingInterval() - Method in class io.nats.client.Options
 
getPlacement() - Method in class io.nats.client.api.StreamConfiguration
Placement directives to consider when placing replicas of this stream, random placement when unset
getPort() - Method in class io.nats.client.api.ServerInfo
 
getPrefix() - Method in class io.nats.client.JetStreamOptions
Gets the prefix for this JetStream context.
getPrivateKey() - Method in class io.nats.client.NKey
 
getProtocolVersion() - Method in class io.nats.client.api.ServerInfo
 
getPublicKey() - Method in class io.nats.client.NKey
 
getPurged() - Method in class io.nats.client.api.PurgeResponse
Returns the number of items purged from the stream
getPurgedCount() - Method in class io.nats.client.api.PurgeResponse
Deprecated.
This method is replaced since the purged value is a long value, not an int value See PurgeResponse.getPurged() instead.
getQueueName() - Method in interface io.nats.client.Subscription
 
getRateLimit() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the rate limit for this consumer configuration.
getReconnectBufferSize() - Method in class io.nats.client.Options
 
getReconnectDelayHandler() - Method in class io.nats.client.Options
 
getReconnectJitter() - Method in class io.nats.client.Options
 
getReconnectJitterTls() - Method in class io.nats.client.Options
 
getReconnects() - Method in interface io.nats.client.Statistics
 
getReconnectWait() - Method in class io.nats.client.Options
 
getRedelivered() - Method in class io.nats.client.api.ConsumerInfo
 
getReplayPolicy() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the replay policy of this consumer configuration.
getReplicas() - Method in class io.nats.client.api.ClusterInfo
 
getReplicas() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the number of replicas for this bucket.
getReplicas() - Method in class io.nats.client.api.KeyValueStatus
Gets the number of replicas for this bucket.
getReplicas() - Method in class io.nats.client.api.StreamConfiguration
Gets the number of replicas for this stream configuration.
getReplyTo() - Method in interface io.nats.client.Message
 
getRequestCleanupInterval() - Method in class io.nats.client.Options
 
getRequestTimeout() - Method in class io.nats.client.JetStreamOptions
Gets the request timeout the stream.
getRetentionPolicy() - Method in class io.nats.client.api.StreamConfiguration
Gets the retention policy for this stream configuration.
getRevision() - Method in class io.nats.client.api.KeyValueEntry
 
getSampleFrequency() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the sample frequency.
getSealed() - Method in class io.nats.client.api.StreamConfiguration
Get the flag indicating whether or not the stream is sealed.
getSeed() - Method in class io.nats.client.NKey
 
getSeq() - Method in class io.nats.client.api.MessageInfo
Get the message sequence
getSeqno() - Method in class io.nats.client.api.PublishAck
Get the stream sequence number for the corresponding published message.
getSequence() - Method in class io.nats.client.PurgeOptions
Get the upper bound sequence for the Purge Options
getSerializedLength() - Method in class io.nats.client.support.IncomingHeadersProcessor
 
getServerId() - Method in class io.nats.client.api.ServerInfo
 
getServerInfo() - Method in interface io.nats.client.Connection
 
getServerName() - Method in class io.nats.client.api.ServerInfo
 
getServers() - Method in interface io.nats.client.Connection
Return the list of known server urls, including additional servers discovered after a connection has been established.
getServers() - Method in class io.nats.client.Options
 
getSID() - Method in interface io.nats.client.Message
 
getSourceInfos() - Method in class io.nats.client.api.StreamInfo
 
getSources() - Method in class io.nats.client.api.StreamConfiguration
The sources for this stream
getSslContext() - Method in class io.nats.client.Options
 
getStartSequence() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the start sequence of this consumer configuration.
getStartTime() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the start time of this consumer configuration.
getStatistics() - Method in interface io.nats.client.Connection
 
getStatus() - Method in interface io.nats.client.Connection
Returns the connections current status.
getStatus() - Method in exception io.nats.client.JetStreamStatusException
Get the full status object
getStatus() - Method in interface io.nats.client.KeyValue
Get the KeyValueStatus object
getStatus() - Method in interface io.nats.client.Message
 
getStatus() - Method in class io.nats.client.support.IncomingHeadersProcessor
 
getStorage() - Method in class io.nats.client.api.AccountStatistics
Gets the amount of storage used by the JetStream deployment.
getStorageType() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the storage type for this bucket.
getStorageType() - Method in class io.nats.client.api.KeyValueStatus
Gets the storage type for this bucket.
getStorageType() - Method in class io.nats.client.api.StreamConfiguration
Gets the storage type for this stream configuration.
getStream() - Method in class io.nats.client.api.PublishAck
Get the name of the stream a published message was stored in.
getStream() - Method in class io.nats.client.PublishOptions
Gets the name of the stream.
getStream() - Method in class io.nats.client.SubscribeOptions
Gets the name of the stream.
getStreamInfo(String) - Method in interface io.nats.client.JetStreamManagement
Gets the info for an existing stream.
getStreamInfo(String, StreamInfoOptions) - Method in interface io.nats.client.JetStreamManagement
Gets the info for an existing stream, and include subject or deleted details as defined by StreamInfoOptions.
getStreamName() - Method in class io.nats.client.api.ConsumerInfo
 
getStreamNames() - Method in interface io.nats.client.JetStreamManagement
Return a list of streams by name
getStreams() - Method in class io.nats.client.api.AccountStatistics
Gets the number of streams used by the JetStream deployment.
getStreams() - Method in interface io.nats.client.JetStreamManagement
Return a list of StreamInfo objects.
getStreamSequence() - Method in class io.nats.client.api.SequencePair
Gets the stream sequence number.
getStreamState() - Method in class io.nats.client.api.StreamInfo
Gets the stream state.
getStreamTimeout() - Method in class io.nats.client.PublishOptions
Gets the publish timeout.
getStringList(String, String) - Static method in class io.nats.client.support.JsonUtils
Extract a list strings for list object name.
getSubject() - Method in class io.nats.client.api.MessageInfo
Get the message subject
getSubject() - Method in interface io.nats.client.Message
 
getSubject() - Method in class io.nats.client.PurgeOptions
Get the subject for the Purge Options
getSubject() - Method in interface io.nats.client.Subscription
 
getSubjectCount() - Method in class io.nats.client.api.StreamState
Gets the count of subjects in the stream.
getSubjects() - Method in class io.nats.client.api.StreamConfiguration
Gets the subjects for this stream configuration.
getSubjects() - Method in class io.nats.client.api.StreamState
Get a list of the Subject objects.
getSubscription() - Method in exception io.nats.client.JetStreamStatusException
Get the subscription this issue occurred on
getSubscription() - Method in interface io.nats.client.Message
 
getSuccess() - Method in class io.nats.client.api.SuccessApiResponse
 
getTags() - Method in class io.nats.client.api.Placement
Tags required on servers hosting this stream
getTemplateOwner() - Method in class io.nats.client.api.StreamConfiguration
Gets the template json for this stream configuration.
getThis() - Method in class io.nats.client.PullSubscribeOptions.Builder
 
getThis() - Method in class io.nats.client.PushSubscribeOptions.Builder
 
getThis() - Method in class io.nats.client.SubscribeOptions.Builder
 
getTime() - Method in class io.nats.client.api.MessageInfo
Get the time the message was received
getToken() - Method in class io.nats.client.Options
Deprecated.
converts the char array to a string, use getTokenChars instead for more security
getTokenChars() - Method in class io.nats.client.Options
 
getTtl() - Method in class io.nats.client.api.KeyValueConfiguration
Gets the maximum age for a value in this bucket.
getTtl() - Method in class io.nats.client.api.KeyValueStatus
Gets the maximum age for a value in this bucket.
getType() - Method in class io.nats.client.api.ApiResponse
 
getType() - Method in class io.nats.client.NKey
 
getUsername() - Method in class io.nats.client.Options
Deprecated.
converts the char array to a string, use getUserNameChars instead for more security
getUsernameChars() - Method in class io.nats.client.Options
 
getValue() - Method in class io.nats.client.api.KeyValueEntry
 
getValue() - Method in class io.nats.client.support.Token
 
getValueAsLong() - Method in class io.nats.client.api.KeyValueEntry
 
getValueAsString() - Method in class io.nats.client.api.KeyValueEntry
 
getVersion() - Method in class io.nats.client.api.ServerInfo
 
getWaitTime(long) - Method in interface io.nats.client.ReconnectDelayHandler
Get the duration of time to wait before trying to reconnect against the server list
GO - Static variable in interface io.nats.client.support.ApiConstants
 
GO_RE - Static variable in interface io.nats.client.support.ApiConstants
 

H

hasError() - Method in class io.nats.client.api.ApiResponse
 
hasExceededTimeout() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
hashCode() - Method in class io.nats.client.api.External
 
hashCode() - Method in class io.nats.client.api.KeyValueEntry
 
hashCode() - Method in class io.nats.client.NKey
 
hashCode() - Method in class io.nats.client.PurgeOptions
 
hashCode() - Method in class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
hasHeaders() - Method in interface io.nats.client.Message
 
hasValue() - Method in class io.nats.client.support.Token
 
HDRS - Static variable in interface io.nats.client.support.ApiConstants
 
HDRS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
HEADER_VERSION - Static variable in interface io.nats.client.support.NatsConstants
 
HEADER_VERSION_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
HEADER_VERSION_BYTES_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
HEADER_VERSION_BYTES_PLUS_CRLF - Static variable in interface io.nats.client.support.NatsConstants
 
HEADERS - Static variable in interface io.nats.client.support.ApiConstants
 
HEADERS_ONLY - Static variable in interface io.nats.client.support.ApiConstants
 
HEADERS_ONLY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
HEADERS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
headersOnly(Boolean) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
set the headers only flag
headersOnly - Variable in class io.nats.client.api.ConsumerConfiguration
 
headersOnlyWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether headers only for this consumer configuration was set or left unset
HEARTBEAT_TEXT - Static variable in class io.nats.client.support.Status
 
heartbeatAlarm(Connection, JetStreamSubscription, long, long) - Method in interface io.nats.client.ErrorListener
Called when subscription heartbeats are missed according to the configured period and threshold.
history(String) - Method in interface io.nats.client.KeyValue
Get the history (list of KeyValueEntry) for a key
HOST - Static variable in interface io.nats.client.support.ApiConstants
 
HOST_RE - Static variable in interface io.nats.client.support.ApiConstants
 
HPUB_SP_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
HPUB_SP_BYTES_LEN - Static variable in interface io.nats.client.support.NatsConstants
 

I

id() - Method in class io.nats.client.support.NatsJetStreamClientError
 
IDLE_HEARTBEAT - Static variable in interface io.nats.client.support.ApiConstants
 
IDLE_HEARTBEAT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
idleHeartbeat(Duration) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the idle heart beat wait time
idleHeartbeat(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the idle heart beat wait time
idleHeartbeat - Variable in class io.nats.client.api.ConsumerConfiguration
 
INACTIVE_THRESHOLD - Static variable in interface io.nats.client.support.ApiConstants
 
INACTIVE_THRESHOLD_RE - Static variable in interface io.nats.client.support.ApiConstants
 
inactiveThreshold(Duration) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the amount of time before the ephemeral consumer is deemed inactive.
inactiveThreshold(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the amount of time before the ephemeral consumer is deemed inactive.
inactiveThreshold - Variable in class io.nats.client.api.ConsumerConfiguration
 
inboxPrefix(String) - Method in class io.nats.client.Options.Builder
Set the connection's inbox prefix.
IncomingHeadersProcessor - Class in io.nats.client.support
 
IncomingHeadersProcessor(byte[]) - Constructor for class io.nats.client.support.IncomingHeadersProcessor
 
inProgress() - Method in interface io.nats.client.Message
Indicates that this message is being worked on and reset redelivery timer in the server.
instance() - Method in class io.nats.client.support.NatsJetStreamClientError
 
integer_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
internalArray() - Method in class io.nats.client.support.ByteArrayBuilder
Access the internal byte array of this buffer.
INVALID_HEADER_COMPOSITION - Static variable in interface io.nats.client.support.NatsConstants
 
INVALID_HEADER_STATUS_CODE - Static variable in interface io.nats.client.support.NatsConstants
 
INVALID_HEADER_VERSION - Static variable in interface io.nats.client.support.NatsConstants
 
io.nats.client - package io.nats.client
The Java NATS client is encapsulated into this single package io.nats.client.
io.nats.client.api - package io.nats.client.api
 
io.nats.client.support - package io.nats.client.support
 
isActive() - Method in interface io.nats.client.Consumer
 
isAuthRequired() - Method in class io.nats.client.api.ServerInfo
 
isBind() - Method in class io.nats.client.SubscribeOptions
Gets whether this subscription is expected to bind to an existing stream and durable consumer
isCancelOn503() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
isCurrent() - Method in class io.nats.client.api.PeerInfo
 
isDefaultPrefix() - Method in class io.nats.client.JetStreamOptions
Returns true if the prefix for this options is the default prefix.
isDiscardMessagesWhenOutgoingQueueFull() - Method in class io.nats.client.Options
 
isDuplicate() - Method in class io.nats.client.api.PublishAck
Gets if the server detected the published message was a duplicate.
isFlowControl() - Method in class io.nats.client.api.ConsumerConfiguration
Get the flow control flag indicating whether it's on or off
isFlowControl() - Method in class io.nats.client.support.Status
 
isHeadersOnly() - Method in class io.nats.client.api.ConsumerConfiguration
Get the header only flag indicating whether it's on or off
isHeadersSupported() - Method in class io.nats.client.api.ServerInfo
 
isHeartbeat() - Method in class io.nats.client.support.Status
 
isJetStream() - Method in interface io.nats.client.Message
Checks if a message is from Jetstream or is a standard message.
isJetStreamAvailable() - Method in class io.nats.client.api.ServerInfo
 
isLameDuckMode() - Method in class io.nats.client.api.ServerInfo
 
isNewerVersionThan(String) - Method in class io.nats.client.api.ServerInfo
 
isNoEcho() - Method in class io.nats.client.Options
 
isNoHeaders() - Method in class io.nats.client.Options
 
isNoNoResponders() - Method in class io.nats.client.Options
 
isNoRandomize() - Method in class io.nats.client.Options
 
isNoResponders() - Method in class io.nats.client.support.Status
 
isOffline() - Method in class io.nats.client.api.PeerInfo
 
isOlderThanVersion(String) - Method in class io.nats.client.api.ServerInfo
 
isOldRequestStyle() - Method in class io.nats.client.Options
 
isOrdered() - Method in class io.nats.client.SubscribeOptions
Gets whether this subscription is expected to ensure messages come in order
isPedantic() - Method in class io.nats.client.Options
 
isPublishNoAck() - Method in class io.nats.client.JetStreamOptions
Gets the whether the publish no ack flag was set
isPull() - Method in class io.nats.client.SubscribeOptions
Gets whether this is a pull subscription
isPushBound() - Method in class io.nats.client.api.ConsumerInfo
 
isSameVersion(String) - Method in class io.nats.client.api.ServerInfo
 
isStatusMessage() - Method in interface io.nats.client.Message
 
isSuccess() - Method in class io.nats.client.api.PurgeResponse
Returns true if the server was able to purge the stream
issueUserJWT(NKey, String, String) - Static method in class io.nats.client.support.JwtUtils
Issue a user JWT from a scoped signing key.
issueUserJWT(NKey, String, String, String) - Static method in class io.nats.client.support.JwtUtils
Issue a user JWT from a scoped signing key.
issueUserJWT(NKey, String, String, String, Duration, String...) - Static method in class io.nats.client.support.JwtUtils
Issue a user JWT from a scoped signing key.
issueUserJWT(NKey, String, String, String, Duration, String[], long) - Static method in class io.nats.client.support.JwtUtils
Method used for testing.
isTLSRequired() - Method in class io.nats.client.api.ServerInfo
 
isTLSRequired() - Method in class io.nats.client.Options
 
isTraceConnection() - Method in class io.nats.client.Options
 
isTrackAdvancedStats() - Method in class io.nats.client.Options
 
isType(TokenType) - Method in class io.nats.client.support.Token
 
isUtf8mode() - Method in interface io.nats.client.Message
 
isValidPublicAccountKey(char[]) - Static method in class io.nats.client.NKey
 
isValidPublicClusterKey(char[]) - Static method in class io.nats.client.NKey
 
isValidPublicOperatorKey(char[]) - Static method in class io.nats.client.NKey
 
isValidPublicServerKey(char[]) - Static method in class io.nats.client.NKey
 
isValidPublicUserKey(char[]) - Static method in class io.nats.client.NKey
 
isVerbose() - Method in class io.nats.client.Options
 
iterate(int, Duration) - Method in interface io.nats.client.JetStreamSubscription
Prepares an iterator.
iterate(int, long) - Method in interface io.nats.client.JetStreamSubscription
Prepares an iterator.

J

JET_STREAM_RE - Static variable in interface io.nats.client.support.ApiConstants
 
jetStream() - Method in interface io.nats.client.Connection
Gets a context for publishing and subscribing to subjects backed by Jetstream streams and consumers.
jetStream(JetStreamOptions) - Method in interface io.nats.client.Connection
Gets a context for publishing and subscribing to subjects backed by Jetstream streams and consumers.
JetStream - Interface in io.nats.client
JetStream context for creation and access to streams and consumers in NATS.
JETSTREAM - Static variable in interface io.nats.client.support.ApiConstants
 
JetStreamApiException - Exception in io.nats.client
JetStreamApiException is used to indicate that the server returned an error while make a request related to JetStream.
JetStreamApiException(ApiResponse<?>) - Constructor for exception io.nats.client.JetStreamApiException
Construct an exception with the response from the server.
jetStreamManagement() - Method in interface io.nats.client.Connection
Gets a context for managing Jetstream streams and consumers.
jetStreamManagement(JetStreamOptions) - Method in interface io.nats.client.Connection
Gets a context for managing Jetstream streams and consumers.
JetStreamManagement - Interface in io.nats.client
JetStream Management context for creation and access to streams and consumers in NATS.
JetStreamOptions - Class in io.nats.client
The JetStreamOptions class specifies the general options for JetStream.
jetStreamOptions(JetStreamOptions) - Method in class io.nats.client.KeyValueOptions.Builder
Sets the JetStreamOptions.
JetStreamOptions.Builder - Class in io.nats.client
JetStreamOptions can be created using a Builder.
JetStreamStatusException - Exception in io.nats.client
JetStreamStatusException is used to indicate an unknown status message was received.
JetStreamStatusException(JetStreamSubscription, Status) - Constructor for exception io.nats.client.JetStreamStatusException
Construct an exception with a status message
JetStreamSubscription - Interface in io.nats.client
Subscription on a JetStream context.
JS_ACK_SUBJECT_PREFIX - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JS_CONSUMER_NOT_FOUND_ERR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JS_NO_MESSAGE_FOUND_ERR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JS_WRONG_LAST_SEQUENCE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_ACCOUNT_INFO - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_CREATE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_DELETE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_INFO - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_LIST - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_MSG_NEXT - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_CONSUMER_NAMES - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_DURABLE_CREATE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_MSG_DELETE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_MSG_GET - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_CREATE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_DELETE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_INFO - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_LIST - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_NAMES - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_PURGE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
JSAPI_STREAM_UPDATE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
jsDomain(String) - Method in class io.nats.client.KeyValueOptions.Builder
Sets the domain for JetStream subjects, creating a standard prefix from that domain in the form $JS.(domain).API.
json - Variable in class io.nats.client.api.ApiResponse
 
jsonDecode(String) - Static method in class io.nats.client.support.Encoding
 
jsonEncode(StringBuilder, String) - Static method in class io.nats.client.support.Encoding
 
JsonSerializable - Interface in io.nats.client.support
 
JsonUtils - Class in io.nats.client.support
Internal json parsing helpers.
JsonUtils.FieldType - Enum in io.nats.client.support
 
jsPrefix(String) - Method in class io.nats.client.KeyValueOptions.Builder
Sets the prefix for JetStream subjects.
jsRequestTimeout(Duration) - Method in class io.nats.client.KeyValueOptions.Builder
Sets the request timeout for JetStream API calls.
JsSoDeliverGroupMismatch - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoDeliverSubjectMismatch - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoDurableMismatch - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedNotAllowedWithBind - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedNotAllowedWithDeliverGroup - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedNotAllowedWithDeliverSubject - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedNotAllowedWithDurable - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedRequiresAckPolicyNone - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSoOrderedRequiresMaxDeliver - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubConsumerAlreadyBound - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubConsumerAlreadyConfiguredAsPull - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubConsumerAlreadyConfiguredAsPush - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubConsumerNotFoundRequiredInBind - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubExistingConsumerCannotBeModified - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubExistingConsumerIsQueue - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubExistingConsumerNotQueue - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubExistingQueueDoesNotMatchRequestedQueue - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubFcHbHbNotValidQueue - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubFcHbNotValidPull - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubNoMatchingStreamForSubject - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubOrderedNotAllowOnQueues - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubPullCantHaveDeliverGroup - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubPullCantHaveDeliverSubject - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubPushCantHaveMaxBatch - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubPushCantHaveMaxPullWaiting - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubQueueDeliverGroupMismatch - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JsSubSubjectDoesNotMatchFilter - Static variable in class io.nats.client.support.NatsJetStreamClientError
 
JwtUtils - Class in io.nats.client.support
Implements https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-14.md

K

keep(long) - Method in class io.nats.client.PurgeOptions.Builder
set the max number of messages to keep
keep - Variable in class io.nats.client.PurgeOptions
 
KEEP - Static variable in interface io.nats.client.support.ApiConstants
 
key - Variable in class io.nats.client.support.NatsKeyValueUtil.BucketAndKey
 
keys() - Method in interface io.nats.client.KeyValue
Get a list of the keys in a bucket.
keyValue(String) - Method in interface io.nats.client.Connection
Gets a context for working with an Key Value bucket THIS IS A BETA FEATURE AND SUBJECT TO CHANGE
keyValue(String, KeyValueOptions) - Method in interface io.nats.client.Connection
Gets a context for working with an Key Value bucket THIS IS A BETA FEATURE AND SUBJECT TO CHANGE
KeyValue - Interface in io.nats.client
Key Value Store Management context for creation and access to key value buckets.
KeyValueConfiguration - Class in io.nats.client.api
The KeyValueConfiguration class contains the configuration for of a Key Value bucket.
KeyValueConfiguration.Builder - Class in io.nats.client.api
KeyValueConfiguration is created using a Builder.
KeyValueEntry - Class in io.nats.client.api
The KeyValueEntry represents a record in the Key Value history
KeyValueEntry(MessageInfo) - Constructor for class io.nats.client.api.KeyValueEntry
 
KeyValueEntry(Message) - Constructor for class io.nats.client.api.KeyValueEntry
 
keyValueManagement() - Method in interface io.nats.client.Connection
Gets a context for managing Key Value buckets THIS IS A BETA FEATURE AND SUBJECT TO CHANGE
keyValueManagement(KeyValueOptions) - Method in interface io.nats.client.Connection
Gets a context for managing Key Value buckets THIS IS A BETA FEATURE AND SUBJECT TO CHANGE
KeyValueManagement - Interface in io.nats.client
Key Value Store Management context for creation and access to key value buckets.
KeyValueOperation - Enum in io.nats.client.api
Key Value Operations Enum
KeyValueOptions - Class in io.nats.client
The KeyValueOptions class specifies the general options for KeyValueO.
KeyValueOptions.Builder - Class in io.nats.client
KeyValueOptions can be created using a Builder.
KeyValuePurgeOptions - Class in io.nats.client.api
 
KeyValuePurgeOptions.Builder - Class in io.nats.client.api
KeyValuePurgeOptions is created using a Builder.
KeyValueStatus - Class in io.nats.client.api
The KeyValueStatus class contains information about a Key Value Bucket.
KeyValueStatus(StreamInfo) - Constructor for class io.nats.client.api.KeyValueStatus
 
KeyValueWatcher - Interface in io.nats.client.api
Use the KeyValueWatcher interface to watch for updates
KeyValueWatchOption - Enum in io.nats.client.api
 
KNOWN_PROTOCOLS - Static variable in interface io.nats.client.support.NatsConstants
 
KV_OPERATION_HEADER_KEY - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
KV_STREAM_PREFIX - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
KV_STREAM_PREFIX_LEN - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
KV_SUBJECT_PREFIX - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
KV_SUBJECT_SUFFIX - Static variable in class io.nats.client.support.NatsKeyValueUtil
 

L

LAG - Static variable in interface io.nats.client.support.ApiConstants
 
LAG_RE - Static variable in interface io.nats.client.support.ApiConstants
 
LAME_DUCK_MODE - Static variable in interface io.nats.client.support.ApiConstants
 
LAME_DUCK_MODE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_BY_SUBJECT - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_CONSUMER_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
LAST_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_STREAM_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
LAST_TS - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_TS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
lastAck() - Method in interface io.nats.client.Message
the last ack that was done with this message
LEADER - Static variable in interface io.nats.client.support.ApiConstants
 
LEADER_RE - Static variable in interface io.nats.client.support.ApiConstants
 
length() - Method in class io.nats.client.support.ByteArrayBuilder
Get the length of the data in the buffer
LF - Static variable in interface io.nats.client.support.NatsConstants
 
LIMIT - Static variable in interface io.nats.client.support.ApiConstants
 
LIMIT_RE - Static variable in interface io.nats.client.support.ApiConstants
 

M

MAX_ACK_PENDING - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_ACK_PENDING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_AGE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_AGE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_BATCH - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_BATCH_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_BYTES - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_BYTES_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_CONSUMERS - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_CONSUMERS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_DELIVER - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_DELIVER_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_EXPIRES - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_EXPIRES_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_HISTORY_PER_KEY - Static variable in interface io.nats.client.support.NatsJetStreamConstants
The Max History Per Key KV key
MAX_MEMORY - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MEMORY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MESSAGES_IN_NETWORK_BUFFER - Static variable in class io.nats.client.Options
This value is used internally to limit the number of messages sent in a single network I/O.
MAX_MSG_SIZE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MSG_SIZE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MSGS - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MSGS_PER_SUB - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MSGS_PER_SUB_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_MSGS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_PAYLOAD - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_PAYLOAD_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_PROTOCOL_RECEIVE_OP_LENGTH - Static variable in interface io.nats.client.support.NatsConstants
 
MAX_PULL_SIZE - Static variable in interface io.nats.client.support.NatsJetStreamConstants
The maximum pull size
MAX_STORAGE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_STORAGE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_STREAMS - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_STREAMS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_WAITING - Static variable in interface io.nats.client.support.ApiConstants
 
MAX_WAITING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
maxAckPending(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the maximum ack pending or null to unset / clear.
maxAckPending(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the maximum ack pending.
maxAckPending - Variable in class io.nats.client.api.ConsumerConfiguration
 
maxAckPendingWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether max ack pending for this consumer configuration was set or left unset
maxAge(Duration) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum age in the StreamConfiguration.
maxAge(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum age in the StreamConfiguration.
maxBatch(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max batch size for the server to allow on pull requests.
maxBatch(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max batch size for the server to allow on pull requests.
maxBatch - Variable in class io.nats.client.api.ConsumerConfiguration
 
maxBatchWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether max batch for this consumer configuration was set or left unset
maxBucketSize(long) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the maximum number of bytes in the KeyValueConfiguration.
maxBytes(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum number of bytes in the StreamConfiguration.
maxConsumers(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum number of consumers in the StreamConfiguration.
maxControlLine(int) - Method in class io.nats.client.Options.Builder
Set the maximum length of a control line sent by this connection.
maxDeliver(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the maximum delivery amount of the ConsumerConfiguration or null to unset / clear.
maxDeliver(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the maximum delivery amount of the ConsumerConfiguration.
maxDeliver - Variable in class io.nats.client.api.ConsumerConfiguration
 
maxDeliverWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether max deliver for this consumer configuration was set or left unset
maxExpires(Duration) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max amount of expire time for the server to allow on pull requests.
maxExpires(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max amount of expire time for the server to allow on pull requests.
maxExpires - Variable in class io.nats.client.api.ConsumerConfiguration
 
maxHistoryPerKey(int) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the maximum number of history for any one key.
maxMessages(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum number of messages in the StreamConfiguration.
maxMessagesInOutgoingQueue(int) - Method in class io.nats.client.Options.Builder
Set the maximum number of messages in the outgoing queue.
maxMessagesPerSubject(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum number of message per subject in the StreamConfiguration.
maxMsgSize(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum message size in the StreamConfiguration.
maxPingsOut(int) - Method in class io.nats.client.Options.Builder
Set the maximum number of pings the client can have in flight.
maxPullWaiting(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max pull waiting, the number of pulls that can be outstanding on a pull consumer, pulls received after this is reached are ignored.
maxPullWaiting(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
sets the max pull waiting, the number of pulls that can be outstanding on a pull consumer, pulls received after this is reached are ignored.
maxPullWaiting - Variable in class io.nats.client.api.ConsumerConfiguration
 
maxPullWaitingWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether max pull waiting for this consumer configuration was set or left unset
maxReconnects(int) - Method in class io.nats.client.Options.Builder
Set the maximum number of reconnect attempts.
maxValueSize(long) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the maximum size for an individual value in the KeyValueConfiguration.
MEMORY - Static variable in interface io.nats.client.support.ApiConstants
 
MEMORY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
Message - Interface in io.nats.client
The NATS library uses a Message object to encapsulate incoming messages.
message() - Method in class io.nats.client.support.NatsJetStreamClientError
 
messageAlarmTime(long) - Method in class io.nats.client.SubscribeOptions.Builder
Set the total amount of time to not receive any messages or heartbeats before calling the ErrorListener heartbeatAlarm
messageAlarmTime - Variable in class io.nats.client.SubscribeOptions
 
messageDiscarded(Connection, Message) - Method in interface io.nats.client.ErrorListener
Called by the connection when a message is discarded.
MessageHandler - Interface in io.nats.client
Dispatchers use the MessageHandler interface to define the listener for their messages.
messageId(String) - Method in class io.nats.client.PublishOptions.Builder
Sets the message id.
MessageInfo - Class in io.nats.client.api
The MessageInfo class contains information about a JetStream message.
MessageInfo(Message) - Constructor for class io.nats.client.api.MessageInfo
 
MESSAGES - Static variable in interface io.nats.client.support.ApiConstants
 
MESSAGES_RE - Static variable in interface io.nats.client.support.ApiConstants
 
metaData() - Method in interface io.nats.client.Message
Gets the metadata associated with a JetStream message.
Min - Variable in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
Min - Variable in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
 
Min - Variable in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
 
MIN_IDLE_HEARTBEAT - Static variable in class io.nats.client.api.ConsumerConfiguration
 
MinNanos - Variable in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
Mirror - Class in io.nats.client.api
Mirror Information.
mirror(Mirror) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the mirror object
MIRROR - Static variable in interface io.nats.client.support.ApiConstants
 
Mirror.Builder - Class in io.nats.client.api
 
MirrorInfo - Class in io.nats.client.api
Information about an upstream stream source in a mirror
MSG_ID_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
MSG_SIZE_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
mustBe(TokenType) - Method in class io.nats.client.support.Token
 

N

nak() - Method in interface io.nats.client.Message
nak acknowledges a JetStream message has been received but indicates that the message is not completely processed and should be sent again later.
nakWithDelay(Duration) - Method in interface io.nats.client.Message
nak acknowledges a JetStream message has been received but indicates that the message is not completely processed and should be sent again later, after at least the delay amount.
nakWithDelay(long) - Method in interface io.nats.client.Message
nak acknowledges a JetStream message has been received but indicates that the message is not completely processed and should be sent again later, after at least the delay amount.
name(String) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the name of the store.
name(String) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the name of the stream.
NAME - Static variable in interface io.nats.client.support.ApiConstants
 
NAME_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NANOS_PER_MILLI - Static variable in interface io.nats.client.support.NatsConstants
 
Nats - Class in io.nats.client
The Nats class is the entry point into the NATS client for Java.
NATS_PROTOCOL - Static variable in interface io.nats.client.support.NatsConstants
 
NATS_PROTOCOL_SLASH_SLASH - Static variable in interface io.nats.client.support.NatsConstants
 
NATS_USER_JWT_FORMAT - Static variable in class io.nats.client.support.JwtUtils
Format string with `%s` place holder for the JWT token followed by the user NKey seed.
NatsConstants - Interface in io.nats.client.support
 
NatsJetStreamClientError - Class in io.nats.client.support
 
NatsJetStreamClientError(String, int, String) - Constructor for class io.nats.client.support.NatsJetStreamClientError
 
NatsJetStreamClientError(String, int, String, int) - Constructor for class io.nats.client.support.NatsJetStreamClientError
 
NatsJetStreamConstants - Interface in io.nats.client.support
 
NatsKeyValueUtil - Class in io.nats.client.support
 
NatsKeyValueUtil.BucketAndKey - Class in io.nats.client.support
 
NatsRequestCompletableFuture - Class in io.nats.client.support
 
NatsRequestCompletableFuture(boolean, Duration) - Constructor for class io.nats.client.support.NatsRequestCompletableFuture
 
next() - Method in class io.nats.client.NUID
Generate the next NUID string from this instance.
nextGlobal() - Static method in class io.nats.client.NUID
 
nextLong(Random, long) - Static method in class io.nats.client.support.RandomUtils
 
nextMessage(Duration) - Method in interface io.nats.client.Subscription
Read the next message for a subscription, or block until one is available.
nextMessage(long) - Method in interface io.nats.client.Subscription
Read the next message for a subscription, or block until one is available.
NKey - Class in io.nats.client
The NATS ecosystem will be moving to Ed25519 keys for identity, authentication and authorization for entities such as Accounts, Users, Servers and Clusters.
NKey.Type - Enum in io.nats.client
NKeys use a prefix byte to indicate their intended owner: 'N' = server, 'C' = cluster, 'A' = account, and 'U' = user.
NO_ACK - Static variable in interface io.nats.client.support.ApiConstants
 
NO_ACK_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NO_RESPONDERS_CODE - Static variable in class io.nats.client.support.Status
 
NO_RESPONDERS_TEXT - Static variable in class io.nats.client.support.Status
 
NO_TYPE - Static variable in class io.nats.client.api.ApiResponse
 
noAck(boolean) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the acknowledgement mode of the StreamConfiguration.
noEcho() - Method in class io.nats.client.Options.Builder
Turn off echo.
noHeaders() - Method in class io.nats.client.Options.Builder
Turn off header support.
NONCE - Static variable in interface io.nats.client.support.ApiConstants
 
NONCE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
noNoResponders() - Method in class io.nats.client.Options.Builder
Turn off noresponder support.
noRandomize() - Method in class io.nats.client.Options.Builder
Turn off server pool randomization.
noReconnect() - Method in class io.nats.client.Options.Builder
Equivalent to calling maxReconnects with 0, maxReconnects.
normalize(String) - Static method in class io.nats.client.support.JsonUtils
 
NOT_SET - Static variable in class io.nats.client.api.Error
 
notNonWildcardKvKey(String) - Static method in class io.nats.client.support.Validator
 
notPrintable(String) - Static method in class io.nats.client.support.Validator
 
notPrintableOrHasChars(String, char[]) - Static method in class io.nats.client.support.Validator
 
notRestrictedTerm(String) - Static method in class io.nats.client.support.Validator
 
notWildcardKvKey(String) - Static method in class io.nats.client.support.Validator
 
NUID - Class in io.nats.client
A highly performant unique identifier generator.
NUID() - Constructor for class io.nats.client.NUID
The default NUID constructor.
NULL - Static variable in class io.nats.client.support.ByteArrayBuilder
 
nullOrEmpty(String) - Static method in class io.nats.client.support.Validator
 
NUM_ACK_PENDING - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_ACK_PENDING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_DELETED - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_DELETED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_PENDING - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_PENDING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_REDELIVERED - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_REDELIVERED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_REPLICAS - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_REPLICAS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_SUBJECTS - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_SUBJECTS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_WAITING - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_WAITING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
number_array_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
number_pattern(String) - Static method in class io.nats.client.support.JsonUtils
Deprecated.

O

objectString(String, Object) - Static method in class io.nats.client.support.JsonUtils
 
OFFLINE - Static variable in interface io.nats.client.support.ApiConstants
 
OFFLINE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
OFFSET - Static variable in interface io.nats.client.support.ApiConstants
 
OFFSET_RE - Static variable in interface io.nats.client.support.ApiConstants
 
oldRequestStyle() - Method in class io.nats.client.Options.Builder
Turn on the old request style that uses a new inbox and subscriber for each request.
onMessage(Message) - Method in interface io.nats.client.MessageHandler
Called to deliver a message to the handler.
OP_CONNECT - Static variable in interface io.nats.client.support.NatsConstants
 
OP_CONNECT_SP_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
OP_ERR - Static variable in interface io.nats.client.support.NatsConstants
 
OP_HMSG - Static variable in interface io.nats.client.support.NatsConstants
 
OP_HPUB - Static variable in interface io.nats.client.support.NatsConstants
 
OP_INFO - Static variable in interface io.nats.client.support.NatsConstants
 
OP_MSG - Static variable in interface io.nats.client.support.NatsConstants
 
OP_OK - Static variable in interface io.nats.client.support.NatsConstants
 
OP_PING - Static variable in interface io.nats.client.support.NatsConstants
 
OP_PING_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
OP_PONG - Static variable in interface io.nats.client.support.NatsConstants
 
OP_PONG_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
OP_PUB - Static variable in interface io.nats.client.support.NatsConstants
 
OP_SUB - Static variable in interface io.nats.client.support.NatsConstants
 
OP_SUB_SP_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
OP_UNSUB - Static variable in interface io.nats.client.support.NatsConstants
 
OP_UNSUB_SP_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
OPENQ - Static variable in class io.nats.client.support.JsonUtils
 
opentls() - Method in class io.nats.client.Options.Builder
Set the SSL context to one that accepts any server certificate and has no client certificates.
OPENTLS_PROTOCOL - Static variable in interface io.nats.client.support.NatsConstants
 
OPT_START_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
OPT_START_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
OPT_START_TIME - Static variable in interface io.nats.client.support.ApiConstants
 
OPT_START_TIME_RE - Static variable in interface io.nats.client.support.ApiConstants
 
Options - Class in io.nats.client
The Options class specifies the connection options for a new NATs connection, including the default options.
Options.Builder - Class in io.nats.client
Options are created using a Builder.
ordered(boolean) - Method in class io.nats.client.PushSubscribeOptions.Builder
Set the ordered consumer flag
ordered - Variable in class io.nats.client.SubscribeOptions
 

P

parseDateTime(String) - Static method in class io.nats.client.support.DateTimeUtils
Parses a date time from the server.
pedantic() - Method in class io.nats.client.Options.Builder
Turn on pedantic mode for the server, in relation to this connection.
PeerInfo - Class in io.nats.client.api
 
pingInterval(Duration) - Method in class io.nats.client.Options.Builder
Set the interval between attempts to pings the server.
Placement - Class in io.nats.client.api
Placement directives to consider when placing replicas of a stream
placement(Placement) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the placement directive object
PLACEMENT - Static variable in interface io.nats.client.support.ApiConstants
 
PORT - Static variable in interface io.nats.client.support.ApiConstants
 
PORT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
PRAND - Static variable in class io.nats.client.support.RandomUtils
 
prefix(String) - Method in class io.nats.client.JetStreamOptions.Builder
Sets the prefix for JetStream subjects.
PREFIX_API_DOT - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
PREFIX_DOLLAR_JS_DOT - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
printFormatted(Object) - Static method in class io.nats.client.support.JsonUtils
 
PROP_CLEANUP_INTERVAL - Static variable in class io.nats.client.Options
Property used to configure a builder from a Properties object.
PROP_CLIENT_SIDE_LIMIT_CHECKS - 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_DISCARD_MESSAGES_WHEN_OUTGOING_QUEUE_FULL - 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_INBOX_PREFIX - Static variable in class io.nats.client.Options
Property used to set the inbox prefix
PROP_MAX_CONTROL_LINE - Static variable in class io.nats.client.Options
Property used to configure a builder from a Properties object.
PROP_MAX_MESSAGES_IN_OUTGOING_QUEUE - 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_NO_HEADERS - Static variable in class io.nats.client.Options
Property used to configure a builder from a Properties object.
PROP_NO_NORESPONDERS - 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_PUBLISH_TIMEOUT - Static variable in class io.nats.client.PublishOptions
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_JITTER - Static variable in class io.nats.client.Options
Property used to configure a builder from a Properties object.
PROP_RECONNECT_JITTER_TLS - 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_STREAM_NAME - Static variable in class io.nats.client.PublishOptions
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
Deprecated.
Plans are to remove allowing utf8mode This property is used to enable support for UTF8 subjects. See supportUTF8Subjcts()
PROP_VERBOSE - Static variable in class io.nats.client.Options
Property used to configure a builder from a Properties object.
PROTO - Static variable in interface io.nats.client.support.ApiConstants
 
PROTO_RE - Static variable in interface io.nats.client.support.ApiConstants
 
PUB_SP_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
PUB_SP_BYTES_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
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.
publish(Message) - Method in interface io.nats.client.Connection
Send a message to the specified subject.
publish(String, byte[]) - Method in interface io.nats.client.JetStream
Send a message to the specified subject and waits for a response from Jetstream.
publish(String, byte[], PublishOptions) - Method in interface io.nats.client.JetStream
Send a message to the specified subject and waits for a response from Jetstream.
publish(Message) - Method in interface io.nats.client.JetStream
Send a message to the specified subject and waits for a response from Jetstream.
publish(Message, PublishOptions) - Method in interface io.nats.client.JetStream
Send a message to the specified subject and waits for a response from Jetstream.
PublishAck - Class in io.nats.client.api
PublishAck objects represent a JetStream enabled server acknowledgment from a publish call.
PublishAck(Message) - Constructor for class io.nats.client.api.PublishAck
 
publishAsync(String, byte[]) - Method in interface io.nats.client.JetStream
Send a message to the specified subject but does not wait for a response from Jetstream.
publishAsync(String, byte[], PublishOptions) - Method in interface io.nats.client.JetStream
Send a message to the specified subject but does not wait for a response from Jetstream.
publishAsync(Message) - Method in interface io.nats.client.JetStream
Send a message to the specified subject but does not wait for a response from Jetstream.
publishAsync(Message, PublishOptions) - Method in interface io.nats.client.JetStream
Send a message to the specified subject but does not wait for a response from Jetstream.
publishNoAck(boolean) - Method in class io.nats.client.JetStreamOptions.Builder
Sets whether the streams in use by contexts created with these options are no-ack streams.
PublishOptions - Class in io.nats.client
The PublishOptions class specifies the options for publishing with JetStream enabled servers.
PublishOptions.Builder - Class in io.nats.client
PublishOptions are created using a Builder.
pull(int) - Method in interface io.nats.client.JetStreamSubscription
Polls for new messages, overriding the default batch size for this pull only.
pull - Variable in class io.nats.client.SubscribeOptions
 
pullExpiresIn(int, Duration) - Method in interface io.nats.client.JetStreamSubscription
Initiate pull for all messages available before expiration.
pullExpiresIn(int, long) - Method in interface io.nats.client.JetStreamSubscription
Initiate pull for all messages available before expiration.
pullNoWait(int) - Method in interface io.nats.client.JetStreamSubscription
Do a pull in noWait mode with the specified batch size.
pullNoWait(int, Duration) - Method in interface io.nats.client.JetStreamSubscription
Do a pull in noWait mode with the specified batch size.
pullNoWait(int, long) - Method in interface io.nats.client.JetStreamSubscription
Do a pull in noWait mode with the specified batch size.
PullSubscribeOptions - Class in io.nats.client
The PullSubscribeOptions class specifies the options for subscribing with JetStream enabled servers.
PullSubscribeOptions.Builder - Class in io.nats.client
PullSubscribeOptions can be created using a Builder.
purge(String) - Method in interface io.nats.client.KeyValue
Purge all values/history from the specific key
PURGE_HEADERS - Static variable in class io.nats.client.support.NatsKeyValueUtil
 
PURGED - Static variable in interface io.nats.client.support.ApiConstants
 
PURGED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
purgeDeletes() - Method in interface io.nats.client.KeyValue
Remove history from all keys that currently are deleted or purged with using a default KeyValuePurgeOptions
purgeDeletes(KeyValuePurgeOptions) - Method in interface io.nats.client.KeyValue
Remove history from all keys that currently are deleted or purged, considering options.
PurgeOptions - Class in io.nats.client
The PurgeOptions class specifies the options for purging a stream
PurgeOptions.Builder - Class in io.nats.client
 
PurgeResponse - Class in io.nats.client.api
 
PurgeResponse(Message) - Constructor for class io.nats.client.api.PurgeResponse
 
purgeStream(String) - Method in interface io.nats.client.JetStreamManagement
Purge stream messages
purgeStream(String, PurgeOptions) - Method in interface io.nats.client.JetStreamManagement
Purge messages for a specific subject
PUSH_BOUND - Static variable in interface io.nats.client.support.ApiConstants
 
PUSH_BOUND_RE - Static variable in interface io.nats.client.support.ApiConstants
 
PushSubscribeOptions - Class in io.nats.client
The PushSubscribeOptions class specifies the options for subscribing with JetStream enabled servers.
PushSubscribeOptions.Builder - Class in io.nats.client
PushSubscribeOptions can be created using a Builder.
put(String, byte[]) - Method in interface io.nats.client.KeyValue
Put a byte[] as the value for a key
put(String, String) - Method in interface io.nats.client.KeyValue
Put a string as the value for a key
put(String, Number) - Method in interface io.nats.client.KeyValue
Put a long as the value for a key

R

RandomUtils - Class in io.nats.client.support
 
RATE_LIMIT_BPS - Static variable in interface io.nats.client.support.ApiConstants
 
RATE_LIMIT_BPS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
rateLimit(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Set the rate limit of the ConsumerConfiguration or null to unset / clear.
rateLimit(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Set the rate limit of the ConsumerConfiguration.
rateLimit - Variable in class io.nats.client.api.ConsumerConfiguration
 
rateLimitWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether rate limit for this consumer configuration was set or left unset
readBase64(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readBoolean(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readBoolean(String, Pattern, Boolean) - Static method in class io.nats.client.support.JsonUtils
 
readBytes(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readDate(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readInt(String, Pattern, int) - Static method in class io.nats.client.support.JsonUtils
 
readInt(String, Pattern, IntConsumer) - Static method in class io.nats.client.support.JsonUtils
 
readLong(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readLong(String, Pattern, long) - Static method in class io.nats.client.support.JsonUtils
 
readLong(String, Pattern, LongConsumer) - Static method in class io.nats.client.support.JsonUtils
 
readNanos(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readNanos(String, Pattern, Duration) - Static method in class io.nats.client.support.JsonUtils
 
readNanos(String, Pattern, Consumer<Duration>) - Static method in class io.nats.client.support.JsonUtils
 
readString(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readString(String, Pattern, String) - Static method in class io.nats.client.support.JsonUtils
 
reconnectBufferSize(long) - Method in class io.nats.client.Options.Builder
Set the maximum number of bytes to buffer in the client when trying to reconnect.
reconnectDelayHandler(ReconnectDelayHandler) - Method in class io.nats.client.Options.Builder
Set the ReconnectDelayHandler for custom reconnect duration
ReconnectDelayHandler - Interface in io.nats.client
Allows the developer to provide the duration of time to before reconnecting a second or more time through the servers list
reconnectJitter(Duration) - Method in class io.nats.client.Options.Builder
Set the jitter time to wait between reconnect attempts to the same server.
reconnectJitterTls(Duration) - Method in class io.nats.client.Options.Builder
Set the jitter time for a tls/secure connection to wait between reconnect attempts to the same server.
reconnectWait(Duration) - Method in class io.nats.client.Options.Builder
Set the time to wait between reconnect attempts to the same server.
REPLAY_POLICY - Static variable in interface io.nats.client.support.ApiConstants
 
REPLAY_POLICY_RE - Static variable in interface io.nats.client.support.ApiConstants
 
replayPolicy(ReplayPolicy) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the replay policy of the ConsumerConfiguration.
replayPolicy - Variable in class io.nats.client.api.ConsumerConfiguration
 
ReplayPolicy - Enum in io.nats.client.api
Represents the replay policy of a consumer.
replayPolicyWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether replay policy for this consumer configuration was set or left unset
Replica - Class in io.nats.client.api
 
REPLICA - Static variable in interface io.nats.client.support.ApiConstants
 
replicas(int) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the number of replicas a message must be stored on in the KeyValueConfiguration.
replicas(int) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the number of replicas a message must be stored on in the StreamConfiguration.
REPLICAS - Static variable in interface io.nats.client.support.ApiConstants
 
request(String, byte[]) - Method in interface io.nats.client.Connection
Send a request.
request(Message) - Method in interface io.nats.client.Connection
Send a request.
request(String, byte[], Duration) - Method in interface io.nats.client.Connection
Send a request and returns the reply or null.
request(Message, Duration) - Method in interface io.nats.client.Connection
Send a request and returns the reply or null.
requestCleanupInterval(Duration) - Method in class io.nats.client.Options.Builder
Set the interval between cleaning passes on outstanding request futures that are cancelled or timeout in the application code.
requestTimeout(Duration) - Method in class io.nats.client.JetStreamOptions.Builder
Sets the request timeout for JetStream API calls.
requestWithTimeout(String, byte[], Duration) - Method in interface io.nats.client.Connection
Send a request.
requestWithTimeout(Message, Duration) - Method in interface io.nats.client.Connection
Send a request.
RETENTION - Static variable in interface io.nats.client.support.ApiConstants
 
RETENTION_RE - Static variable in interface io.nats.client.support.ApiConstants
 
RetentionPolicy - Enum in io.nats.client.api
Stream retention policies.
retentionPolicy(RetentionPolicy) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the retention policy in the StreamConfiguration.
RFC3339_FORMATTER - Static variable in class io.nats.client.support.DateTimeUtils
 
ROLLUP_HDR - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
ROLLUP_HDR_ALL - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
ROLLUP_HDR_SUBJECT - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 

S

safeParseLong(String) - Static method in class io.nats.client.support.JsonUtils
 
safeParseLong(String, long) - Static method in class io.nats.client.support.JsonUtils
 
samePoint(Token) - Method in class io.nats.client.support.Token
 
SAMPLE_FREQ - Static variable in interface io.nats.client.support.ApiConstants
 
SAMPLE_FREQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
sampleFrequency(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the sample frequency of the ConsumerConfiguration.
sampleFrequency - Variable in class io.nats.client.api.ConsumerConfiguration
 
sealed(boolean) - Method in class io.nats.client.api.StreamConfiguration.Builder
Set whether to seal the stream.
SEALED - Static variable in interface io.nats.client.support.ApiConstants
 
SEALED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
secure() - Method in class io.nats.client.Options.Builder
Sets the options to use the default SSL Context, if it exists.
seq - Variable in class io.nats.client.PurgeOptions
 
SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
sequence(long) - Method in class io.nats.client.PurgeOptions.Builder
Set upper-bound sequence for messages to be deleted
SequencePair - Class in io.nats.client.api
This class holds the sequence numbers for a consumer and stream.
serialize() - Method in interface io.nats.client.support.JsonSerializable
 
SERIALIZED_HEADER_CANNOT_BE_NULL_OR_EMPTY - Static variable in interface io.nats.client.support.NatsConstants
 
server(String) - Method in class io.nats.client.Options.Builder
Add a server to the list of known servers.
SERVER_ID - Static variable in interface io.nats.client.support.ApiConstants
 
SERVER_ID_RE - Static variable in interface io.nats.client.support.ApiConstants
 
SERVER_NAME - Static variable in interface io.nats.client.support.ApiConstants
 
SERVER_NAME_RE - Static variable in interface io.nats.client.support.ApiConstants
 
ServerInfo - Class in io.nats.client.api
 
ServerInfo(String) - Constructor for class io.nats.client.api.ServerInfo
 
servers(String[]) - Method in class io.nats.client.Options.Builder
Add an array of servers to the list of known servers.
setAllocationSize(int) - Method in class io.nats.client.support.ByteArrayBuilder
Change the allocation size
setOldRequestStyle(boolean) - Method in class io.nats.client.Options
Set old request style.
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.
simpleMessageBody(String, Number) - Static method in class io.nats.client.support.JsonUtils
 
simpleMessageBody(String, String) - Static method in class io.nats.client.support.JsonUtils
 
slowConsumerDetected(Connection, Consumer) - Method in interface io.nats.client.ErrorListener
Called by the connection when a "slow" consumer is detected.
Source - Class in io.nats.client.api
Source Information
SOURCE - Static variable in interface io.nats.client.support.ApiConstants
 
Source.Builder - Class in io.nats.client.api
 
SourceInfo - Class in io.nats.client.api
Information about a stream being sourced
sources(Source...) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the sources in the StreamConfiguration.
sources(Collection<Source>) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the sources in the StreamConfiguration.
SOURCES - Static variable in interface io.nats.client.support.ApiConstants
 
SP - Static variable in interface io.nats.client.support.NatsConstants
 
SPACE - Static variable in interface io.nats.client.support.NatsConstants
 
SRAND - Static variable in class io.nats.client.support.RandomUtils
 
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.
SSLUtils - Class in io.nats.client.support
 
SSLUtils() - Constructor for class io.nats.client.support.SSLUtils
 
startSeq - Variable in class io.nats.client.api.ConsumerConfiguration
 
startSequence(Long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the start sequence of the ConsumerConfiguration or null to unset / clear.
startSequence(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the start sequence of the ConsumerConfiguration.
startSeqWasSet() - Method in class io.nats.client.api.ConsumerConfiguration
Gets whether start sequence for this consumer configuration was set or left unset
startTime(ZonedDateTime) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the start time of the ConsumerConfiguration.
startTime - Variable in class io.nats.client.api.ConsumerConfiguration
 
STATE - Static variable in interface io.nats.client.support.ApiConstants
 
staticCredentials(char[], char[]) - Static method in class io.nats.client.Nats
Create an auth handler from an nkey and an option JWT.
Statistics - Interface in io.nats.client
Connections can provide an instance of Statistics, getStatistics().
Status - Class in io.nats.client.support
 
Status(int, String) - Constructor for class io.nats.client.support.Status
 
Status(Token, Token) - Constructor for class io.nats.client.support.Status
 
STORAGE - Static variable in interface io.nats.client.support.ApiConstants
 
STORAGE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
STORAGE_TYPE_RE - Static variable in interface io.nats.client.support.ApiConstants
 
storageType(StorageType) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the storage type in the KeyValueConfiguration.
StorageType - Enum in io.nats.client.api
Stream storage types.
storageType(StorageType) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the storage type in the StreamConfiguration.
stream(String) - Method in class io.nats.client.PublishOptions.Builder
Sets the stream name for publishing.
stream(String) - Static method in class io.nats.client.PushSubscribeOptions
Macro to create a default PushSubscribeOptions except for where you must specify the stream because the subject could apply to both a stream and a mirror.
stream(String) - Method in class io.nats.client.SubscribeOptions.Builder
Specify the stream to attach to.
stream - Variable in class io.nats.client.SubscribeOptions
 
STREAM - Static variable in interface io.nats.client.support.ApiConstants
 
STREAM_NAME - Static variable in interface io.nats.client.support.ApiConstants
 
STREAM_NAME_RE - Static variable in interface io.nats.client.support.ApiConstants
 
STREAM_RE - Static variable in interface io.nats.client.support.ApiConstants
 
STREAM_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
STREAM_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
StreamConfiguration - Class in io.nats.client.api
The StreamConfiguration class specifies the configuration for creating a JetStream stream on the server.
StreamConfiguration.Builder - Class in io.nats.client.api
StreamConfiguration is created using a Builder.
StreamInfo - Class in io.nats.client.api
The StreamInfo class contains information about a JetStream stream.
StreamInfo(Message) - Constructor for class io.nats.client.api.StreamInfo
 
StreamInfo(String) - Constructor for class io.nats.client.api.StreamInfo
 
StreamInfoOptions - Class in io.nats.client.api
Object used to make a request for special stream info requests
StreamInfoOptions.Builder - Class in io.nats.client.api
StreamInfoOptions is created using a Builder.
STREAMS - Static variable in interface io.nats.client.support.ApiConstants
 
STREAMS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
StreamState - Class in io.nats.client.api
 
streamTimeout(Duration) - Method in class io.nats.client.PublishOptions.Builder
Sets the timeout to wait for a publish acknowledgement from a JetStream enabled NATS server.
string_array_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
string_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
SUB_SP_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
Subject - Class in io.nats.client.api
 
subject(String) - Method in class io.nats.client.PurgeOptions.Builder
Set the subject to filter the purge.
subject - Variable in class io.nats.client.PurgeOptions
 
subject(String) - Static method in class io.nats.client.PurgeOptions
Creates a completed Purge Options for just a subject
SUBJECT - Static variable in interface io.nats.client.support.ApiConstants
 
SUBJECT_RE - Static variable in interface io.nats.client.support.ApiConstants
 
subjects(String...) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the subjects in the StreamConfiguration.
subjects(Collection<String>) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the subjects in the StreamConfiguration.
SUBJECTS - Static variable in interface io.nats.client.support.ApiConstants
 
SUBJECTS_FILTER - Static variable in interface io.nats.client.support.ApiConstants
 
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.
subscribe(String, MessageHandler) - Method in interface io.nats.client.Dispatcher
Create a subscription to the specified subject under the control of this dispatcher.
subscribe(String, String, MessageHandler) - Method in interface io.nats.client.Dispatcher
Create a subscription to the specified subject under the control of this dispatcher.
subscribe(String) - Method in interface io.nats.client.JetStream
Create a synchronous subscription to the specified subject with default options.
subscribe(String, PushSubscribeOptions) - Method in interface io.nats.client.JetStream
Create a synchronous subscription to the specified subject.
subscribe(String, String, PushSubscribeOptions) - Method in interface io.nats.client.JetStream
Create a synchronous subscription to the specified subject.
subscribe(String, Dispatcher, MessageHandler, boolean) - Method in interface io.nats.client.JetStream
Create an asynchronous subscription to the specified subject under the control of the specified dispatcher.
subscribe(String, Dispatcher, MessageHandler, boolean, PushSubscribeOptions) - Method in interface io.nats.client.JetStream
Create an asynchronous subscription to the specified subject under the control of the specified dispatcher.
subscribe(String, String, Dispatcher, MessageHandler, boolean, PushSubscribeOptions) - Method in interface io.nats.client.JetStream
Create an asynchronous subscription to the specified subject under the control of the specified dispatcher.
subscribe(String, PullSubscribeOptions) - Method in interface io.nats.client.JetStream
Create a subscription to the specified subject in the mode of pull, with additional options
SubscribeOptions - Class in io.nats.client
The SubscribeOptions is the base class for PushSubscribeOptions and PullSubscribeOptions
SubscribeOptions(SubscribeOptions.Builder, boolean, boolean, String, String) - Constructor for class io.nats.client.SubscribeOptions
 
SubscribeOptions.Builder<B,SO> - Class in io.nats.client
PushSubscribeOptions can be created using a Builder.
Subscription - Interface in io.nats.client
A Subscription encapsulates an incoming queue of messages associated with a single subject and optional queue name.
SUCCESS - Static variable in interface io.nats.client.support.ApiConstants
 
SUCCESS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
SuccessApiResponse - Class in io.nats.client.api
 
SuccessApiResponse(Message) - Constructor for class io.nats.client.api.SuccessApiResponse
 
supportUTF8Subjects() - Method in class io.nats.client.Options.Builder
Deprecated.
Plans are to remove allowing utf8mode
supportUTF8Subjects() - Method in class io.nats.client.Options
Deprecated.
Plans are to remove allowing utf8mode

T

TAB - Static variable in interface io.nats.client.support.NatsConstants
 
TAGS - Static variable in interface io.nats.client.support.ApiConstants
 
TEMPLATE_OWNER - Static variable in interface io.nats.client.support.ApiConstants
 
TEMPLATE_OWNER_RE - Static variable in interface io.nats.client.support.ApiConstants
 
templateOwner(String) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the template a stream in the form of raw JSON.
term() - Method in interface io.nats.client.Message
term prevents this message from every being delivered regardless of maxDeliverCount.
throwOnHasError() - Method in class io.nats.client.api.ApiResponse
 
TIME - Static variable in interface io.nats.client.support.ApiConstants
 
TIME_RE - Static variable in interface io.nats.client.support.ApiConstants
 
TLS - Static variable in interface io.nats.client.support.ApiConstants
 
TLS_PROTOCOL - Static variable in interface io.nats.client.support.NatsConstants
 
TLS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
toBase64Url(byte[]) - Static method in class io.nats.client.support.Encoding
 
toBase64Url(String) - Static method in class io.nats.client.support.Encoding
 
toByteArray() - Method in class io.nats.client.support.ByteArrayBuilder
Copy the value in the buffer to a new byte array
toGmt(ZonedDateTime) - Static method in class io.nats.client.support.DateTimeUtils
 
toJson() - Method in class io.nats.client.api.ConsumerConfiguration
Returns a JSON representation of this consumer configuration.
toJson() - Method in class io.nats.client.api.External
Returns a JSON representation of this mirror
toJson() - Method in class io.nats.client.api.Placement
 
toJson() - Method in class io.nats.client.api.StreamConfiguration
Returns a JSON representation of this consumer configuration.
toJson() - Method in class io.nats.client.api.StreamInfoOptions
 
toJson() - Method in class io.nats.client.PurgeOptions
 
toJson() - Method in interface io.nats.client.support.JsonSerializable
 
token(String) - Method in class io.nats.client.Options.Builder
Deprecated.
use the char[] version instead for better security
token(char[]) - Method in class io.nats.client.Options.Builder
Set the token for token-based authentication.
Token - Class in io.nats.client.support
 
Token(byte[], int, Token, TokenType) - Constructor for class io.nats.client.support.Token
 
Token(byte[], int, int, TokenType) - Constructor for class io.nats.client.support.Token
 
TokenType - Enum in io.nats.client.support
 
toKeyPrefix(String) - Static method in class io.nats.client.support.NatsKeyValueUtil
 
toRfc3339(ZonedDateTime) - Static method in class io.nats.client.support.DateTimeUtils
 
toStreamName(String) - Static method in class io.nats.client.support.NatsKeyValueUtil
 
toStreamSubject(String) - Static method in class io.nats.client.support.NatsKeyValueUtil
 
toString() - Method in class io.nats.client.api.AccountLimits
 
toString() - Method in class io.nats.client.api.AccountStatistics
 
toString() - Method in enum io.nats.client.api.AckPolicy
 
toString() - Method in class io.nats.client.api.ClusterInfo
 
toString() - Method in class io.nats.client.api.ConsumerConfiguration
 
toString() - Method in class io.nats.client.api.ConsumerInfo
 
toString() - Method in enum io.nats.client.api.DeliverPolicy
 
toString() - Method in enum io.nats.client.api.DiscardPolicy
 
toString() - Method in class io.nats.client.api.Error
 
toString() - Method in class io.nats.client.api.External
 
toString() - Method in class io.nats.client.api.KeyValueConfiguration
 
toString() - Method in class io.nats.client.api.KeyValueEntry
 
toString() - Method in class io.nats.client.api.KeyValueStatus
 
toString() - Method in class io.nats.client.api.MessageInfo
 
toString() - Method in class io.nats.client.api.PeerInfo
 
toString() - Method in class io.nats.client.api.Placement
 
toString() - Method in class io.nats.client.api.PublishAck
 
toString() - Method in class io.nats.client.api.PurgeResponse
 
toString() - Method in enum io.nats.client.api.ReplayPolicy
 
toString() - Method in enum io.nats.client.api.RetentionPolicy
 
toString() - Method in class io.nats.client.api.SequencePair
 
toString() - Method in class io.nats.client.api.ServerInfo
 
toString() - Method in enum io.nats.client.api.StorageType
 
toString() - Method in class io.nats.client.api.StreamConfiguration
 
toString() - Method in class io.nats.client.api.StreamInfo
 
toString() - Method in class io.nats.client.api.StreamState
 
toString() - Method in class io.nats.client.api.Subject
 
toString() - Method in enum io.nats.client.ConnectionListener.Events
 
toString() - Method in class io.nats.client.SubscribeOptions
 
toString() - Method in class io.nats.client.support.ByteArrayBuilder
 
toString() - Method in class io.nats.client.support.Status
 
TOTAL - Static variable in interface io.nats.client.support.ApiConstants
 
TOTAL_RE - Static variable in interface io.nats.client.support.ApiConstants
 
traceConnection() - Method in class io.nats.client.Options.Builder
Enable connection trace messages.
ttl(Duration) - Method in class io.nats.client.api.KeyValueConfiguration.Builder
Sets the maximum age for a value in this KeyValueConfiguration.
turnOnAdvancedStats() - Method in class io.nats.client.Options.Builder
Turn on advanced stats, primarily for test/benchmarks.
TYPE - Static variable in interface io.nats.client.support.ApiConstants
 
TYPE_RE - Static variable in interface io.nats.client.support.ApiConstants
 

U

unhandledStatus(Connection, JetStreamSubscription, Status) - Method in interface io.nats.client.ErrorListener
Called by the connection when an unhandled status is received.
UNKNOWN_OP - Static variable in interface io.nats.client.support.NatsConstants
 
Unset - Variable in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
Unset - Variable in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
 
Unset - Variable in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
 
UNSET_LAST_SEQUENCE - Static variable in class io.nats.client.PublishOptions
Use this variable to unset a sequence number in publish options.
UNSET_STREAM - Static variable in class io.nats.client.PublishOptions
Use this variable to unset a stream in publish options.
UNSUB_SP_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
unsubscribe(String) - Method in interface io.nats.client.Dispatcher
Unsubscribe from the specified subject, the queue is implicit.
unsubscribe(Subscription) - Method in interface io.nats.client.Dispatcher
Unsubscribe from the specified Subscription.
unsubscribe(String, int) - Method in interface io.nats.client.Dispatcher
Unsubscribe from the specified subject, the queue is implicit, after the specified number of messages.
unsubscribe(Subscription, int) - Method in interface io.nats.client.Dispatcher
Unsubscribe from the specified subject, the queue is implicit, after the specified number of messages.
unsubscribe() - Method in interface io.nats.client.Subscription
Unsubscribe this subscription and stop listening for messages.
unsubscribe(int) - Method in interface io.nats.client.Subscription
Unsubscribe this subscription and stop listening for messages, after the specified number of messages.
update(String, byte[], long) - Method in interface io.nats.client.KeyValue
Put as the value for a key iff the key exists and its last revision matches the expected
updateStream(StreamConfiguration) - Method in interface io.nats.client.JetStreamManagement
Updates an existing stream.
userInfo(String, String) - Method in class io.nats.client.Options.Builder
Set the username and password for basic authentication.
userInfo(char[], char[]) - Method in class io.nats.client.Options.Builder
Set the username and password for basic authentication.

V

validateDurable(String, boolean) - Static method in class io.nats.client.support.Validator
 
validateDurationNotRequiredGtOrEqZero(Duration, Duration) - Static method in class io.nats.client.support.Validator
 
validateDurationNotRequiredGtOrEqZero(long) - Static method in class io.nats.client.support.Validator
 
validateDurationNotRequiredNotLessThanMin(Duration, Duration) - Static method in class io.nats.client.support.Validator
 
validateDurationNotRequiredNotLessThanMin(long, Duration) - Static method in class io.nats.client.support.Validator
 
validateDurationRequired(Duration) - Static method in class io.nats.client.support.Validator
 
validateGtEqMinus1(long, String) - Static method in class io.nats.client.support.Validator
 
validateGtEqZero(long, String) - Static method in class io.nats.client.support.Validator
 
validateGtZeroOrMinus1(long, String) - Static method in class io.nats.client.support.Validator
 
validateKvBucketName(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validateKvBucketNameRequired(String) - Static method in class io.nats.client.support.Validator
 
validateKvKeyWildcardAllowedRequired(String) - Static method in class io.nats.client.support.Validator
 
validateMaxBucketBytes(long) - Static method in class io.nats.client.support.Validator
 
validateMaxBytes(long) - Static method in class io.nats.client.support.Validator
 
validateMaxConsumers(long) - Static method in class io.nats.client.support.Validator
 
validateMaxHistory(int) - Static method in class io.nats.client.support.Validator
 
validateMaxLength(String, int, boolean, String) - Static method in class io.nats.client.support.Validator
 
validateMaxMessages(long) - Static method in class io.nats.client.support.Validator
 
validateMaxMessageSize(long) - Static method in class io.nats.client.support.Validator
 
validateMaxMessagesPerSubject(long) - Static method in class io.nats.client.support.Validator
 
validateMaxValueSize(long) - Static method in class io.nats.client.support.Validator
 
validateMustMatchIfBothSupplied(String, String, NatsJetStreamClientError) - Static method in class io.nats.client.support.Validator
 
validateNonWildcardKvKey(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validateNonWildcardKvKeyRequired(String) - Static method in class io.nats.client.support.Validator
 
validateNotNegative(long, String) - Static method in class io.nats.client.support.Validator
 
validateNotNull(Object, String) - Static method in class io.nats.client.support.Validator
 
validateNotSupplied(String, NatsJetStreamClientError) - Static method in class io.nats.client.support.Validator
 
validateNumberOfReplicas(int) - Static method in class io.nats.client.support.Validator
 
validatePrefixOrDomain(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validatePrintable(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validatePrintableExceptWildDotGt(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validatePrintableExceptWildGt(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
validatePullBatchSize(int) - Static method in class io.nats.client.support.Validator
 
validateQueueName(String, boolean) - Static method in class io.nats.client.support.Validator
 
validateReplyTo(String, boolean) - Static method in class io.nats.client.support.Validator
 
validateStreamName(String, boolean) - Static method in class io.nats.client.support.Validator
 
validateSubject(String, boolean) - Static method in class io.nats.client.support.Validator
 
validateWildcardKvKey(String, String, boolean) - Static method in class io.nats.client.support.Validator
 
Validator - Class in io.nats.client.support
 
valueOf(String) - Static method in enum io.nats.client.api.AckPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.DeliverPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.DiscardPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.KeyValueOperation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.KeyValueWatchOption
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.ReplayPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.RetentionPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.api.StorageType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.Connection.Status
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.ConnectionListener.Events
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.ErrorListener.FlowControlSource
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.NKey.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.support.JsonUtils.FieldType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.nats.client.support.TokenType
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.nats.client.api.AckPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.DeliverPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.DiscardPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.KeyValueOperation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.KeyValueWatchOption
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.ReplayPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.RetentionPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.api.StorageType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.Connection.Status
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.ConnectionListener.Events
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.ErrorListener.FlowControlSource
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.NKey.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.support.JsonUtils.FieldType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.nats.client.support.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
verbose() - Method in class io.nats.client.Options.Builder
Turn on verbose mode with the server.
verify(byte[], byte[]) - Method in class io.nats.client.NKey
Verify a signature.
VERSION - Static variable in interface io.nats.client.support.ApiConstants
 
VERSION_RE - Static variable in interface io.nats.client.support.ApiConstants
 

W

wasCancelledClosing() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
wasCancelledTimedOut() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
watch(KeyValueEntry) - Method in interface io.nats.client.api.KeyValueWatcher
Called when a key has been updated
watch(String, KeyValueWatcher, KeyValueWatchOption...) - Method in interface io.nats.client.KeyValue
Watch updates for a specific key
watchAll(KeyValueWatcher, KeyValueWatchOption...) - Method in interface io.nats.client.KeyValue
Watch updates for all keys
wouldBeChange(Duration, Duration) - Method in enum io.nats.client.api.ConsumerConfiguration.DurationChangeHelper
 
wouldBeChange(Long, Long) - Method in enum io.nats.client.api.ConsumerConfiguration.LongChangeHelper
 
wouldBeChange(Long, Long) - Method in enum io.nats.client.api.ConsumerConfiguration.UlongChangeHelper
 

Z

zeroOrLtMinus1(long) - Static method in class io.nats.client.support.Validator
 
ZONE_ID_GMT - Static variable in class io.nats.client.support.DateTimeUtils
 

_

_addList(StringBuilder, String, List<T>, JsonUtils.ListAdder<T>) - Static method in class io.nats.client.support.JsonUtils
Appends a json field to a string builder.
_validate(String, boolean, String, Validator.Check) - Static method in class io.nats.client.support.Validator
 
A B C D E F G H I J K L M N O P R S T U V W Z _ 
Skip navigation links