Skip navigation links
jnats:0.5.3
A C D E G I J M N O P R S T U V 

A

add(T) - Method in class io.nats.client.Channel
 
add(T, long, TimeUnit) - Method in class io.nats.client.Channel
 
AsyncSubscription - Interface in io.nats.client
A client uses an AsyncSubscription object to receive messages from a subject.
autoUnsubscribe(int) - Method in interface io.nats.client.Subscription
Issues an automatic unsubscribe request.

C

Channel<T> - Class in io.nats.client
Channel is a utility wrapper for LinkedBlockingQueue.
Channel() - Constructor for class io.nats.client.Channel
 
Channel(LinkedBlockingQueue<T>) - Constructor for class io.nats.client.Channel
 
Channel(int) - Constructor for class io.nats.client.Channel
 
Channel(Collection<T>) - Constructor for class io.nats.client.Channel
 
clear() - Method in class io.nats.client.Statistics
 
clone() - Method in class io.nats.client.ConnectionFactory
.
close() - Method in class io.nats.client.Channel
 
close() - Method in interface io.nats.client.Subscription
ClosedCallback - Interface in io.nats.client
When a Connection is closed for any reason, the Connection object's ClosedCallback is notifed, if one has been registered.
Connection - Interface in io.nats.client
A Connection object is a client's active connection to NATS.
ConnectionEvent - Class in io.nats.client
A ConnectionEvent object contains information about about an asynchronous event that has occurred on a connection.
ConnectionFactory - Class in io.nats.client
A ConnectionFactory object encapsulates a set of connection configuration options.
ConnectionFactory(Properties) - Constructor for class io.nats.client.ConnectionFactory
Constructs a new connection factory from a Properties object.
ConnectionFactory() - Constructor for class io.nats.client.ConnectionFactory
Constructs a connection factory using default parameters.
ConnectionFactory(String) - Constructor for class io.nats.client.ConnectionFactory
Constructs a connection factory using the supplied URL string as default.
ConnectionFactory(String[]) - Constructor for class io.nats.client.ConnectionFactory
Constructs a connection factory from a list of NATS server URL strings.
ConnectionFactory(String, String[]) - Constructor for class io.nats.client.ConnectionFactory
Constructs a connection factory from a list of NATS server URLs, using url as the primary address.
ConnectionFactory(ConnectionFactory) - Constructor for class io.nats.client.ConnectionFactory
Constructs a ConnectionFactory by copying the supplied ConnectionFactory.
Constants - Class in io.nats.client
Constants for io.nats.client
Constants.ConnState - Enum in io.nats.client
Connection states for AbstractConnection.getState().
createConnection() - Method in class io.nats.client.ConnectionFactory
Creates an active connection to a NATS server

D

DEFAULT_ENCODER - Static variable in class io.nats.client.Constants
 
DEFAULT_HOST - Static variable in class io.nats.client.ConnectionFactory
Default server host.
DEFAULT_HOST - Static variable in class io.nats.client.Constants
Deprecated.
use ConnectionFactory.DEFAULT_HOST instead.

Default server host

This property is defined as String "localhost"

DEFAULT_MAX_PENDING_BYTES - Static variable in class io.nats.client.ConnectionFactory
Default maximum pending/undelivered payload bytes on a subscription.
DEFAULT_MAX_PENDING_MSGS - Static variable in class io.nats.client.ConnectionFactory
Default maximum pending/undelivered messages on a subscription.
DEFAULT_MAX_PINGS_OUT - Static variable in class io.nats.client.ConnectionFactory
Default maximum number of pings that have not received a response.
DEFAULT_MAX_RECONNECT - Static variable in class io.nats.client.ConnectionFactory
Default maximum number of reconnect attempts.
DEFAULT_PING_INTERVAL - Static variable in class io.nats.client.ConnectionFactory
Default server ping interval.
DEFAULT_PORT - Static variable in class io.nats.client.ConnectionFactory
Default server port.
DEFAULT_PORT - Static variable in class io.nats.client.Constants
Deprecated.
use ConnectionFactory.DEFAULT_PORT instead.

Default server port

This property is defined as int 4222

DEFAULT_RECONNECT_BUF_SIZE - Static variable in class io.nats.client.ConnectionFactory
Default of pending message buffer that is used for buffering messages that are published during a disconnect/reconnect.
DEFAULT_RECONNECT_WAIT - Static variable in class io.nats.client.ConnectionFactory
Default wait time before attempting reconnection to the same server.
DEFAULT_TIMEOUT - Static variable in class io.nats.client.ConnectionFactory
Default connection timeout.
DEFAULT_URL - Static variable in class io.nats.client.ConnectionFactory
Default server URL.
DEFAULT_URL - Static variable in class io.nats.client.Constants
Deprecated.
use ConnectionFactory.DEFAULT_URL instead.

Default server URL

This property is defined as String "nats://localhost:4222"

DisconnectedCallback - Interface in io.nats.client
When a Connection is disconnected for any reason, the Connection object's DisconnectedCallback is notifed, if one has been registered.

E

ERR_AUTHORIZATION - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: authorization violation".
ERR_BAD_SUBJECT - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: invalid subject".
ERR_BAD_SUBSCRIPTION - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: invalid subscription".
ERR_BAD_TIMEOUT - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: timeout invalid".
ERR_CONNECTION_CLOSED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: connection closed".
ERR_CONNECTION_READ - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: connection read error".
ERR_INVALID_CONNECTION - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: invalid connection".
ERR_INVALID_MESSAGE - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: invalid message or message nil".
ERR_JSON_PARSE - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: connect message, json parse err".
ERR_MAX_MESSAGES - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: maximum messages delivered".
ERR_MAX_PAYLOAD - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: maximum payload exceeded".
ERR_NO_INFO_RECEIVED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: protocol exception, INFO not received".
ERR_NO_SERVERS - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: no servers available for connection".
ERR_PROTOCOL - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: protocol error".
ERR_RECONNECT_BUF_EXCEEDED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: outbound buffer limit exceeded".
ERR_SECURE_CONN_REQUIRED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: secure connection required".
ERR_SECURE_CONN_WANTED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: secure connection not available".
ERR_SLOW_CONSUMER - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: slow consumer, messages dropped".
ERR_STALE_CONNECTION - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: stale connection".
ERR_SYNC_SUB_REQUIRED - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: illegal call on an async subscription".
ERR_TIMEOUT - Static variable in class io.nats.client.Constants
This error message is defined as String "nats: timeout".
ExceptionHandler - Interface in io.nats.client
If NATS detects a serious problem with a Connection object, it informs the Connection object's ExceptionHandler, if one has been registered.

G

get() - Method in class io.nats.client.Channel
 
get(long) - Method in class io.nats.client.Channel
 
get(long, TimeUnit) - Method in class io.nats.client.Channel
 
getClosedCallback() - Method in class io.nats.client.ConnectionFactory
Returns the ClosedCallback, if one is registered.
getConnection() - Method in class io.nats.client.ConnectionEvent
 
getConnection() - Method in exception io.nats.client.NATSException
 
getConnectionName() - Method in class io.nats.client.ConnectionFactory
Gets the name associated with this Connection
getConnectionTimeout() - Method in class io.nats.client.ConnectionFactory
Returns the connection timeout interval in milliseconds.
getCount() - Method in class io.nats.client.Channel
 
getData() - Method in class io.nats.client.Message
Returns the message payload
getDisconnectedCallback() - Method in class io.nats.client.ConnectionFactory
Returns the DisconnectedCallback, if one is registered.
getDropped() - Method in interface io.nats.client.Subscription
Returns the number of messages that this subscription has dropped due to "slow consumer" condition.
getExceptionHandler() - Method in class io.nats.client.ConnectionFactory
Returns the ExceptionHandler, if one is registered.
getHost() - Method in class io.nats.client.ConnectionFactory
Gets the default server host, if set.
getInBytes() - Method in class io.nats.client.Statistics
 
getInMsgs() - Method in class io.nats.client.Statistics
 
getMaxPendingBytes() - Method in class io.nats.client.ConnectionFactory
Gets the maximum number of pending message byes for a subscription.
getMaxPendingBytes() - Method in interface io.nats.client.Subscription
Returns the maximum number of pending bytes for this subscription.
getMaxPendingMsgs() - Method in class io.nats.client.ConnectionFactory
Gets the maximum number of pending messages for a subscription.
getMaxPendingMsgs() - Method in interface io.nats.client.Subscription
Returns the maximum number of pending messages for this subscription.
getMaxPingsOut() - Method in class io.nats.client.ConnectionFactory
Returns the maximum number of outstanding server pings
getMaxReconnect() - Method in class io.nats.client.ConnectionFactory
Gets the maximum number of reconnection attempts for this connection.
getOutBytes() - Method in class io.nats.client.Statistics
 
getOutMsgs() - Method in class io.nats.client.Statistics
 
getPassword() - Method in class io.nats.client.ConnectionFactory
Gets the default password, or null if not set.
getPingInterval() - Method in class io.nats.client.ConnectionFactory
Gets the server ping interval in milliseconds.
getPort() - Method in class io.nats.client.ConnectionFactory
Gets the default server port, if set.
getQueue() - Method in interface io.nats.client.Subscription
Returns the optional queue group name.
getQueuedMessageCount() - Method in interface io.nats.client.Subscription
Returns the number of messages delivered to, but not processed, by this Subscription.
getReconnectBufSize() - Method in class io.nats.client.ConnectionFactory
Returns the maximum size in bytes of the pending message buffer, which is used to buffer messages between a disconnect and subsequent reconnect.
getReconnectedCallback() - Method in class io.nats.client.ConnectionFactory
Returns the ReconnectedCallback, if one is registered.
getReconnects() - Method in class io.nats.client.Statistics
 
getReconnectWait() - Method in class io.nats.client.ConnectionFactory
Returns the reconnect wait interval in milliseconds.
getReplyTo() - Method in class io.nats.client.Message
Returns the reply subject
getServers() - Method in class io.nats.client.ConnectionFactory
Gets the server list as URI.
getSslContext() - Method in class io.nats.client.ConnectionFactory
Deprecated.
use ConnectionFactory.getSSLContext() instead. Returns the SSLContext for this connection factory
getSSLContext() - Method in class io.nats.client.ConnectionFactory
Returns the SSLContext for this connection factory.
getSubject() - Method in class io.nats.client.Message
Returns the message subject
getSubject() - Method in interface io.nats.client.Subscription
Retrieves the subject of interest from the Subscription object.
getSubscription() - Method in class io.nats.client.Message
Returns the Subscription object the message was received on
getSubscription() - Method in exception io.nats.client.NATSException
 
getUrlString() - Method in class io.nats.client.ConnectionFactory
Returns the default server URL string, if set.
getUsername() - Method in class io.nats.client.ConnectionFactory
Gets the default username, if set.
globalNUID - Static variable in class io.nats.client.NUID
 

I

io.nats.client - package io.nats.client
 
isClosed() - Method in class io.nats.client.Channel
 
isNoRandomize() - Method in class io.nats.client.ConnectionFactory
Indicates whether server list randomization is disabled.
isPedantic() - Method in class io.nats.client.ConnectionFactory
Indicates whether strict server-side protocol checking is enabled.
isReconnectAllowed() - Method in class io.nats.client.ConnectionFactory
Indicates whether reconnection is enabled.
isSecure() - Method in class io.nats.client.ConnectionFactory
Indicates whether to require a secure connection with the NATS server.
isTlsDebug() - Method in class io.nats.client.ConnectionFactory
Indicates whether TLS debug output should be enabled.
isValid() - Method in interface io.nats.client.Subscription
Returns whether the Subscription object is still active (subscribed).
isVerbose() - Method in class io.nats.client.ConnectionFactory
Indicates whether verbose is set.

J

JSON_ENCODER - Static variable in class io.nats.client.Constants
 

M

Message - Class in io.nats.client
A Message object is used to send a message containing a stream of uninterpreted bytes.
Message() - Constructor for class io.nats.client.Message
 
Message(String, String, byte[]) - Constructor for class io.nats.client.Message
 
MessageHandler - Interface in io.nats.client
A MessageHandler object is used as a callback to receive asynchronously delivered messages.

N

NATSException - Exception in io.nats.client
 
NATSException(String) - Constructor for exception io.nats.client.NATSException
 
NATSException(String, Exception) - Constructor for exception io.nats.client.NATSException
 
NATSException(Throwable, Connection, Subscription) - Constructor for exception io.nats.client.NATSException
 
next() - Method in class io.nats.client.NUID
 
nextGlobal() - Static method in class io.nats.client.NUID
 
nextMessage() - Method in interface io.nats.client.SyncSubscription
Receive the next message that becomes available for this Subscription, waiting if necessary until a Message becomes available.
nextMessage(long) - Method in interface io.nats.client.SyncSubscription
Receive the next Message that arrives for this Subscription within the specified timeout interval.
nextMessage(long, TimeUnit) - Method in interface io.nats.client.SyncSubscription
Receive the next Message that arrives for this Subscription within the specified timeout interval.
NUID - Class in io.nats.client
 
NUID() - Constructor for class io.nats.client.NUID
 

O

onClose(ConnectionEvent) - Method in interface io.nats.client.ClosedCallback
This callback notification method is invoked when the Connection is closed.
onDisconnect(ConnectionEvent) - Method in interface io.nats.client.DisconnectedCallback
This callback notification method is invoked when the Connection is disconnected.
onException(NATSException) - Method in interface io.nats.client.ExceptionHandler
Notify user of a NATS exception
onMessage(Message) - Method in interface io.nats.client.MessageHandler
Passes a message to the handler.
onReconnect(ConnectionEvent) - Method in interface io.nats.client.ReconnectedCallback
This callback notification method is invoked when the Connection is successfully reconnected.

P

poll() - Method in class io.nats.client.Channel
 
PROP_CLOSED_CB - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.callback.closed".
PROP_CONNECTION_NAME - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.name".
PROP_CONNECTION_TIMEOUT - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.timeout".
PROP_DISCONNECTED_CB - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.callback.disconnected".
PROP_EXCEPTION_HANDLER - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.callback.exception".
PROP_HOST - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.host".
PROP_MAX_PENDING_BYTES - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.maxpending.bytes".
PROP_MAX_PENDING_MSGS - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.maxpending".
PROP_MAX_PINGS - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.maxpings".
PROP_MAX_RECONNECT - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.reconnect.max".
PROP_NORANDOMIZE - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.norandomize".
PROP_PASSWORD - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.password".
PROP_PEDANTIC - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.pedantic".
PROP_PING_INTERVAL - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.pinginterval".
PROP_PORT - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.port".
PROP_RECONNECT_ALLOWED - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.reconnect.allowed".
PROP_RECONNECT_BUF_SIZE - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.reconnect.buffer.size".
PROP_RECONNECT_WAIT - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.reconnect.wait".
PROP_RECONNECTED_CB - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.callback.reconnected".
PROP_SECURE - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.secure".
PROP_SERVERS - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.servers".
PROP_TLS_DEBUG - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.tls.debug".
PROP_URL - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.url".
PROP_USERNAME - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.username".
PROP_VERBOSE - Static variable in class io.nats.client.Constants
This property is defined as String "io.nats.client.verbose".
publish(String, byte[]) - Method in interface io.nats.client.Connection
Publishes the payload specified by data to the subject specified by subject.
publish(Message) - Method in interface io.nats.client.Connection
Publishes a message to a subject.
publish(String, String, byte[]) - Method in interface io.nats.client.Connection
Publishes the payload specified by data to the subject specified by subject, with an optional reply subject.
put(T) - Method in class io.nats.client.Channel
 

R

randomizePrefix() - Method in class io.nats.client.NUID
 
ReconnectedCallback - Interface in io.nats.client
When a previously disconnected Connection is reconnected to a NATS server, the Connection object's ReconnectedCallback is notified, if one has been registered.
request(String, byte[], long) - Method in interface io.nats.client.Connection
Publishes a request message to the specified subject, waiting up to timeout msec for a response.
request(String, byte[]) - Method in interface io.nats.client.Connection
Publishes a request message to the specified subject, waiting for a response until one is available.
request(String, byte[], long, TimeUnit) - Method in interface io.nats.client.Connection
 

S

setClosedCallback(ClosedCallback) - Method in class io.nats.client.ConnectionFactory
Sets the ClosedCallback.
setConnection(Connection) - Method in exception io.nats.client.NATSException
 
setConnectionName(String) - Method in class io.nats.client.ConnectionFactory
Sets the name associated with this Connection
setConnectionTimeout(int) - Method in class io.nats.client.ConnectionFactory
Sets the connection timeout interval in milliseconds.
setData(byte[], int, int) - Method in class io.nats.client.Message
Sets the message payload data
setData(byte[]) - Method in class io.nats.client.Message
Sets the message payload data
setDisconnectedCallback(DisconnectedCallback) - Method in class io.nats.client.ConnectionFactory
setExceptionHandler(ExceptionHandler) - Method in class io.nats.client.ConnectionFactory
setHost(String) - Method in class io.nats.client.ConnectionFactory
Sets the default server host.
setMaxPendingBytes(long) - Method in class io.nats.client.ConnectionFactory
Sets the maximum number of pending message bytes for a subscription.
setMaxPendingBytes(long) - Method in interface io.nats.client.Subscription
Sets the maximum number of unprocessed message bytes that can be left pending on this subscription before a slow consumer exception is thrown.
setMaxPendingMsgs(int) - Method in class io.nats.client.ConnectionFactory
Sets the maximum number of pending messages for a subscription.
setMaxPendingMsgs(int) - Method in interface io.nats.client.Subscription
Sets the maximum number of unprocessed messages that can be left pending on this subscription before a slow consumer exception is thrown.
setMaxPingsOut(int) - Method in class io.nats.client.ConnectionFactory
Sets the maximum number of outstanding pings (pings for which no pong has been received).
setMaxReconnect(int) - Method in class io.nats.client.ConnectionFactory
Sets the maximum number of reconnection attempts for this connection.
setMessageHandler(MessageHandler) - Method in interface io.nats.client.AsyncSubscription
 
setNoRandomize(boolean) - Method in class io.nats.client.ConnectionFactory
Disables or enables server list randomization.
setPassword(String) - Method in class io.nats.client.ConnectionFactory
Sets the default password.
setPedantic(boolean) - Method in class io.nats.client.ConnectionFactory
Sets whether strict server-side protocol checking is enabled.
setPendingLimits(int, int) - Method in interface io.nats.client.Subscription
Sets the the maximum number of unprocessed messages and bytes that can be left pending on this subscription before messages are dropped and a slow consumer exception is thrown.
setPingInterval(long) - Method in class io.nats.client.ConnectionFactory
Sets the server ping interval in milliseconds.
setPort(int) - Method in class io.nats.client.ConnectionFactory
Sets the default server port.
setReconnectAllowed(boolean) - Method in class io.nats.client.ConnectionFactory
Sets whether reconnection is enabled.
setReconnectBufSize(int) - Method in class io.nats.client.ConnectionFactory
Sets the maximum size in bytes of the pending message buffer, which is used to buffer messages between a disconnect and subsequent reconnect.
setReconnectedCallback(ReconnectedCallback) - Method in class io.nats.client.ConnectionFactory
setReconnectWait(long) - Method in class io.nats.client.ConnectionFactory
Sets the reconnect wait interval in milliseconds.
setReplyTo(String) - Method in class io.nats.client.Message
Sets the message reply subject
setSecure(boolean) - Method in class io.nats.client.ConnectionFactory
Sets whether to require a secure connection with the NATS server.
setServers(List<URI>) - Method in class io.nats.client.ConnectionFactory
Sets the server list from a list of URI.
setServers(String) - Method in class io.nats.client.ConnectionFactory
Sets the server list from a comma-delimited list of server addresses in a single string.
setServers(String[]) - Method in class io.nats.client.ConnectionFactory
Sets the server list from a list of String.
setSslContext(SSLContext) - Method in class io.nats.client.ConnectionFactory
Deprecated.
use ConnectionFactory.setSSLContext(javax.net.ssl.SSLContext) instead. Sets the SSLContext for this connection factory
setSSLContext(SSLContext) - Method in class io.nats.client.ConnectionFactory
Sets the SSLContext for this connection factory.
setSubject(String) - Method in class io.nats.client.Message
Sets the subject of the message
setSubscription(Subscription) - Method in exception io.nats.client.NATSException
 
setTlsDebug(boolean) - Method in class io.nats.client.ConnectionFactory
Sets whether TLS debug output should be enabled.
setUri(URI) - Method in class io.nats.client.ConnectionFactory
Convenience function to set host, port, username, password from a java.net.URI.
setUrl(String) - Method in class io.nats.client.ConnectionFactory
Sets the default server URL string.
setUsername(String) - Method in class io.nats.client.ConnectionFactory
Sets the default username.
setVerbose(boolean) - Method in class io.nats.client.ConnectionFactory
Sets whether verbose is set.
start() - Method in interface io.nats.client.AsyncSubscription
Starts asynchronous message delivery to this subscription
Statistics - Class in io.nats.client
 
Subscription - Interface in io.nats.client
A client uses a Subscription object to receive messages that have been published to a subject.
SyncSubscription - Interface in io.nats.client
A client uses an SyncSubscription object to receive messages from a subject synchronously.

T

toString() - Method in class io.nats.client.Message
 
toString() - Method in class io.nats.client.Statistics
 

U

unsubscribe() - Method in interface io.nats.client.Subscription
Removes interest in the Subscription object's subject immediately.

V

valueOf(String) - Static method in enum io.nats.client.Constants.ConnState
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.nats.client.Constants.ConnState
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E G I J M N O P R S T U V 
Skip navigation links
jnats:0.5.3

Copyright © 2015–2016 Apcera, Inc.. All rights reserved.