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(AckPolicy) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the acknowledgement policy of the ConsumerConfiguration.
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(Duration) - 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
 
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, 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.
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.
addPrefix(String) - Static method in class io.nats.client.support.JsPrefixManager
 
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.
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

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) - Static method in class io.nats.client.PushSubscribeOptions
Create PushSubscribeOptions where you are binding to a specific stream, which could be a stream or a mirror
boolean_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 
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.Mirror.Builder
 
build() - Method in class io.nats.client.api.Source.Builder
 
build() - Method in class io.nats.client.api.StreamConfiguration.Builder
Builds the ConsumerConfiguration
build() - Method in class io.nats.client.JetStreamOptions.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.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.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.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() - 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
 
Builder() - Constructor for class io.nats.client.PullSubscribeOptions.Builder
 
builder() - Static method in class io.nats.client.PushSubscribeOptions
 
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.
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 - "2.11.5"
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
 
consumerConfig - Variable in class io.nats.client.SubscribeOptions.Builder
 
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.Builder - Class in io.nats.client.api
ConsumerConfiguration is created using a Builder.
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
 
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.
decode(String) - Static method in class io.nats.client.support.JsonUtils
 
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_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_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_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_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
deleteConsumer(String, String) - Method in interface io.nats.client.JetStreamManagement
Deletes a consumer.
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_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
 
deliverPolicy(DeliverPolicy) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the delivery policy of the ConsumerConfiguration.
DeliverPolicy - Enum in io.nats.client.api
The delivery policy for this consumer.
deliverSubject(String) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the subject to deliver messages to.
deliverSubject(String) - Method in class io.nats.client.PushSubscribeOptions.Builder
Setting this specifies the push model to a delivery subject.
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.
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.
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.SubscribeOptions.Builder
 
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
 
endFormattedJson(StringBuilder) - Static method in class io.nats.client.support.JsonUtils
 
endJson(StringBuilder) - Static method in class io.nats.client.support.JsonUtils
 
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
equals(Object) - Method in class io.nats.client.api.External
 
equals(Object) - Method in class io.nats.client.NKey
 
equals(byte[]) - Method in class io.nats.client.support.ByteArrayBuilder
Determine if a byte array contains the same bytes as this buffer
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.
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_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 ID 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
 

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.
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.
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(boolean) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
set the flow control mode
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.
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
 
getAckFloor() - Method in class io.nats.client.api.ConsumerInfo
 
getAckPolicy() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
 
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
 
getApi() - Method in class io.nats.client.api.External
The subject prefix that imports the other account $JS.API.CONSUMER.> subjects
getAuthHandler() - Method in class io.nats.client.Options
 
getBufferSize() - Method in class io.nats.client.Options
 
getByteCount() - Method in class io.nats.client.api.StreamState
Gets the byte count of the stream.
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.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.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.
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
 
getDataPortType() - Method in class io.nats.client.Options
 
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
 
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.Builder
 
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.
getDescription() - Method in class io.nats.client.api.ApiResponse
 
getDescription() - Method in class io.nats.client.api.Error
 
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
 
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.Builder
 
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.
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.
getExpectedStream() - Method in class io.nats.client.PublishOptions
Gets the expected stream.
getFilterSubject() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
 
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
getFlowControl() - Method in class io.nats.client.api.ConsumerConfiguration
Get the flow control flag indicating whether it's on or off
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
 
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
getInboxPrefix() - Method in class io.nats.client.Options
 
getInBytes() - Method in interface io.nats.client.Statistics
 
getInMsgs() - Method in interface io.nats.client.Statistics
 
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.
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
 
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
 
getMaxAckPending() - Method in class io.nats.client.api.ConsumerConfiguration.Builder
 
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.
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.
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.
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
 
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.
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
 
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.
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.
getOptions() - Method in interface io.nats.client.Connection
 
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
 
getPurgedCount() - Method in class io.nats.client.api.PurgeResponse
Returns the number of items purged from the stream
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.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.
getSampleFrequency() - Method in class io.nats.client.api.ConsumerConfiguration
Gets the sample frequency.
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.
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 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.StreamConfiguration
Gets the storate 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.
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 interface io.nats.client.Subscription
 
getSubjects() - Method in class io.nats.client.api.StreamConfiguration
Gets the subjects for this stream configuration.
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
 
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.support.Token
 
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.NKey
 
hasHeaders() - Method in interface io.nats.client.Message
 
hasPrefix(String) - Static method in class io.nats.client.support.JsPrefixManager
 
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
 
HEADERS - Static variable in interface io.nats.client.support.ApiConstants
 
HEADERS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
HEARTBEAT_TEXT - Static variable in class io.nats.client.support.Status
 
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

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
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.
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
 
isCancelOn503() - Method in class io.nats.client.support.NatsRequestCompletableFuture
 
isCurrent() - Method in class io.nats.client.api.PeerInfo
 
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.support.Status
 
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
 
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
 
isOldRequestStyle() - Method in class io.nats.client.Options
 
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
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
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.

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.Builder - Class in io.nats.client
JetStreamOptions can be created using a Builder.
JetStreamSubscription - Interface in io.nats.client
Subscription on a JetStream context.
JS_PREFIX - 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_PREFIX - 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
 
JSAPI_STREAMS - Static variable in interface io.nats.client.support.NatsJetStreamConstants
 
json - Variable in class io.nats.client.api.ApiResponse
 
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
 
JsPrefixManager - Class in io.nats.client.support
 

K

KNOWN_PROTOCOLS - Static variable in interface io.nats.client.support.NatsConstants
 

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_SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_TS - Static variable in interface io.nats.client.support.ApiConstants
 
LAST_TS_RE - Static variable in interface io.nats.client.support.ApiConstants
 
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_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_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_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.JetStreamSubscription
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
 
maxAckPending(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the maximum ack pending.
maxAge(Duration) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum age in the StreamConfiguration.
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.
maxMessages(long) - Method in class io.nats.client.api.StreamConfiguration.Builder
Sets the maximum number of consumers in the StreamConfiguration.
maxMessagesInOutgoingQueue(int) - Method in class io.nats.client.Options.Builder
Set the maximum number of messages in the outgoing queue.
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.
maxReconnects(int) - Method in class io.nats.client.Options.Builder
Set the maximum number of reconnect attempts.
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.
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.
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
 
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.
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
 
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
 
NatsConstants - Interface in io.nats.client.support
 
NatsJetStreamConstants - Interface 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.
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
 
notPrintable(String) - Static method in class io.nats.client.support.Validator
 
notPrintableOrHasChars(String, char[]) - 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_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_WAITING - Static variable in interface io.nats.client.support.ApiConstants
 
NUM_WAITING_RE - Static variable in interface io.nats.client.support.ApiConstants
 
number_pattern(String) - Static method in class io.nats.client.support.JsonUtils
 

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.

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.
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_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.
pullExpiresIn(int, Duration) - 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.
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.
PURGED - Static variable in interface io.nats.client.support.ApiConstants
 
PURGED_RE - Static variable in interface io.nats.client.support.ApiConstants
 
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
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.

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(int) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Set the rate limit of the ConsumerConfiguration.
readBase64(String, Pattern) - Static method in class io.nats.client.support.JsonUtils
 
readBoolean(String, Pattern) - 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, 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, 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 - Enum in io.nats.client.api
Represents the replay policy of a consumer.
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.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.
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
 

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.
secure() - Method in class io.nats.client.Options.Builder
Sets the options to use the default SSL Context, if it exists.
SEQ - Static variable in interface io.nats.client.support.ApiConstants
 
SEQ_RE - Static variable in interface io.nats.client.support.ApiConstants
 
SequencePair - Class in io.nats.client.api
This class holds the sequence numbers for a consumer and stream.
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, Object) - 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
 
startSequence(long) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the start sequence of the ConsumerConfiguration.
startTime(ZonedDateTime) - Method in class io.nats.client.api.ConsumerConfiguration.Builder
Sets the start time of the 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 - 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 - Variable in class io.nats.client.SubscribeOptions.Builder
 
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
 
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 - 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
 
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 PushSubscribeOptions class specifies the options for subscribing with JetStream enabled servers.
SubscribeOptions(String, ConsumerConfiguration) - 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
 
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 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
 
toRfc3339(ZonedDateTime) - Static method in class io.nats.client.support.DateTimeUtils
 
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.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 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.
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

UNKNOWN_OP - Static variable in interface io.nats.client.support.NatsConstants
 
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.
updateStream(StreamConfiguration) - Method in interface io.nats.client.JetStreamManagement
Updates an existing stream.
userInfo(String, String) - Method in class io.nats.client.Options.Builder
Deprecated.
use the char[] version instead for better security
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
 
validateDurableRequired(String, ConsumerConfiguration) - Static method in class io.nats.client.support.Validator
 
validateDurationNotRequiredGtOrEqZero(Duration) - Static method in class io.nats.client.support.Validator
 
validateDurationRequired(Duration) - Static method in class io.nats.client.support.Validator
 
validateGtZeroOrMinus1(long, String) - Static method in class io.nats.client.support.Validator
 
validateJetStreamPrefix(String) - 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
 
validateMaxMessages(long) - Static method in class io.nats.client.support.Validator
 
validateMaxMessageSize(long) - 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
 
validateNumberOfReplicas(int) - 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
 
validatePrintableExceptWildGtDollar(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
 
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.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.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.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.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.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.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 - Static variable in interface io.nats.client.support.NatsConstants
 
VERSION_BYTES - Static variable in interface io.nats.client.support.NatsConstants
 
VERSION_BYTES_LEN - Static variable in interface io.nats.client.support.NatsConstants
 
VERSION_BYTES_PLUS_CRLF - Static variable in interface io.nats.client.support.NatsConstants
 
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
 

Z

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

_

_validate(String, String, boolean, 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