Skip navigation links
A B C D E G H I M N O P R S T V 

A

AbstractClientInboundMessageHandlerAdapter - Class in nats.codec
 
AbstractClientInboundMessageHandlerAdapter() - Constructor for class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
addConnectionStateListener(ConnectionStateListener) - Method in class nats.client.NatsConnector
Adds a ConnectionStateListener to the client.
addHost(URI) - Method in class nats.client.NatsConnector
Adds a URI to the list of URIs that will be used to connect to a Nats server by the Nats instance.
addHost(String) - Method in class nats.client.NatsConnector
Adds a URI to the list of URIs that will be used to connect to a Nats server by the Nats instance.
addMessageHandler(MessageHandler) - Method in class nats.client.DefaultSubscription
 
addMessageHandler(MessageHandler) - Method in interface nats.client.Subscription
Registers a MessageHandler instance with this subscription that will be invoked every time the subscription receives a message.
automaticReconnect(boolean) - Method in class nats.client.NatsConnector
Indicates whether a reconnect should be attempted automatically if the Nats server connection fails.

B

BlockingQueueMessageIterator - Class in nats.client
A MessageIterator that is backed by a LinkedBlockingQueue.
BlockingQueueMessageIterator() - Constructor for class nats.client.BlockingQueueMessageIterator
 

C

calllbackExecutor(Executor) - Method in class nats.client.NatsConnector
channelRead(ChannelHandlerContext, Object) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
ClientConnectFrame - Class in nats.codec
 
ClientConnectFrame(ConnectBody) - Constructor for class nats.codec.ClientConnectFrame
 
ClientFrame - Interface in nats.codec
 
ClientFrameDecoder - Class in nats.codec
 
ClientFrameDecoder() - Constructor for class nats.codec.ClientFrameDecoder
 
ClientFrameEncoder - Class in nats.codec
 
ClientFrameEncoder() - Constructor for class nats.codec.ClientFrameEncoder
 
ClientPingFrame - Class in nats.codec
 
ClientPingFrame() - Constructor for class nats.codec.ClientPingFrame
 
ClientPongFrame - Class in nats.codec
 
ClientPongFrame() - Constructor for class nats.codec.ClientPongFrame
 
ClientPublishFrame - Class in nats.codec
 
ClientPublishFrame(String, String, String) - Constructor for class nats.codec.ClientPublishFrame
 
ClientSubscribeFrame - Class in nats.codec
 
ClientSubscribeFrame(String, String, String) - Constructor for class nats.codec.ClientSubscribeFrame
 
ClientUnsubscribeFrame - Class in nats.codec
 
ClientUnsubscribeFrame(String) - Constructor for class nats.codec.ClientUnsubscribeFrame
 
ClientUnsubscribeFrame(String, Integer) - Constructor for class nats.codec.ClientUnsubscribeFrame
 
close() - Method in class nats.client.BlockingQueueMessageIterator
 
close() - Method in class nats.client.DefaultSubscription
 
close() - Method in interface nats.client.MessageIterator
Closes this subscription iterator.
close() - Method in class nats.client.MockNats
 
close() - Method in interface nats.client.Nats
Closes this Nats instance.
close() - Method in interface nats.client.Request
Closes this request.
close() - Method in interface nats.client.Subscription
Closes this subscription.
CMD_CONNECT - Static variable in class nats.codec.ClientFrameDecoder
 
CMD_CONNECT - Static variable in class nats.codec.ClientFrameEncoder
 
CMD_ERR - Static variable in class nats.codec.ServerFrameEncoder
 
CMD_INFO - Static variable in class nats.codec.ServerFrameEncoder
 
CMD_PUB - Static variable in class nats.codec.ServerFrameEncoder
 
CMD_PUBLISH - Static variable in class nats.codec.ClientFrameDecoder
 
CMD_PUBLISH - Static variable in class nats.codec.ClientFrameEncoder
 
CMD_SUBSCRIBE - Static variable in class nats.codec.ClientFrameDecoder
 
CMD_SUBSCRIBE - Static variable in class nats.codec.ClientFrameEncoder
 
CMD_UNSUBSCRIBE - Static variable in class nats.codec.ClientFrameDecoder
 
CMD_UNSUBSCRIBE - Static variable in class nats.codec.ClientFrameEncoder
 
connect() - Method in class nats.client.NatsConnector
Creates the Nats instance and asynchronously connects to the first Nats server provided using the #addHost methods.
ConnectBody - Class in nats.codec
 
ConnectBody(String, String, boolean, boolean) - Constructor for class nats.codec.ConnectBody
 
ConnectionStateListener - Interface in nats.client
Interface to listen for server connection state change events.
ConnectionStateListener.State - Enum in nats.client
 
Constants - Class in nats
 
createMessage(String, String, String, String) - Method in class nats.client.DefaultSubscription
 

D

decodeCommand(ChannelHandlerContext, String, ByteBuf) - Method in class nats.codec.ClientFrameDecoder
 
decodeCommand(ChannelHandlerContext, String, ByteBuf) - Method in class nats.codec.ServerFrameDecoder
 
DEFAULT_HOST - Static variable in class nats.Constants
The default host to look for a Nats server, localhost, naturally.
DEFAULT_IDLE_TIMEOUT - Static variable in class nats.Constants
The default time duration the connection to the NATS server may be idle.
DEFAULT_MAX_FRAME_SIZE - Static variable in class nats.Constants
The default maximum message size this client will accept from a Nats server.
DEFAULT_PING_INTERVAL - Static variable in class nats.Constants
The default time between Nats ping requests.
DEFAULT_PORT - Static variable in class nats.Constants
The default Nats port, 4222.
DEFAULT_RECONNECT_TIME_WAIT - Static variable in class nats.Constants
The default amount of time to wait between Nats server connection attempts.
DefaultMessage - Class in nats.client
Provides a default implementation of the Message interface.
DefaultMessage(String, String, String, boolean) - Constructor for class nats.client.DefaultMessage
 
DefaultSubscription - Class in nats.client
Provides an abstract implementation of the Subscription interface.
DefaultSubscription(String, String, Integer, MessageHandler...) - Constructor for class nats.client.DefaultSubscription
 

E

encode(ChannelHandlerContext, ClientFrame, ByteBuf) - Method in class nats.codec.ClientFrameEncoder
 
encode(ChannelHandlerContext, ServerFrame, ByteBuf) - Method in class nats.codec.ServerFrameEncoder
 
errorResponse(ChannelHandlerContext, ServerErrorFrame) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
eventLoopGroup(EventLoopGroup) - Method in class nats.client.NatsConnector
Specifies the Netty EventLoopGroup to use for connecting to the Nats server(s).

G

getBody() - Method in class nats.client.DefaultMessage
 
getBody() - Method in interface nats.client.Message
Returns the body of the message.
getBody() - Method in class nats.codec.ClientConnectFrame
 
getBody() - Method in class nats.codec.ClientPublishFrame
 
getBody() - Method in class nats.codec.ServerPublishFrame
 
getCommand() - Method in exception nats.codec.NatsDecodingException
 
getErrorMessage() - Method in class nats.codec.ServerErrorFrame
 
getId() - Method in class nats.codec.ClientSubscribeFrame
 
getId() - Method in class nats.codec.ClientUnsubscribeFrame
 
getId() - Method in class nats.codec.ServerPublishFrame
 
getInfo() - Method in class nats.codec.ServerInfoFrame
 
getMaxMessages() - Method in class nats.client.DefaultSubscription
 
getMaxMessages() - Method in interface nats.client.Subscription
Returns the maximum number of messages this subscription will receive before being closed automatically.
getMaxMessages() - Method in class nats.codec.ClientUnsubscribeFrame
 
getMaxReplies() - Method in interface nats.client.Request
Returns the maximum number of replies this request will receive.
getPassword() - Method in class nats.codec.ConnectBody
 
getQueueGroup() - Method in class nats.client.DefaultMessage
 
getQueueGroup() - Method in class nats.client.DefaultSubscription
 
getQueueGroup() - Method in interface nats.client.Message
Returns the queue group of the message.
getQueueGroup() - Method in interface nats.client.Subscription
Returns the queue group the subscription is participating in.
getQueueGroup() - Method in class nats.codec.ClientSubscribeFrame
 
getReceivedMessages() - Method in class nats.client.DefaultSubscription
 
getReceivedMessages() - Method in interface nats.client.Subscription
Returns the number of messages this subscription has received.
getReceivedReplies() - Method in interface nats.client.Request
Returns the number of replies this request has received.
getReplyTo() - Method in class nats.codec.ClientPublishFrame
 
getReplyTo() - Method in class nats.codec.ServerPublishFrame
 
getSubject() - Method in class nats.client.DefaultMessage
 
getSubject() - Method in class nats.client.DefaultSubscription
 
getSubject() - Method in interface nats.client.Message
Returns the subject used to send the message.
getSubject() - Method in interface nats.client.Request
Returns the subject the request was sent on.
getSubject() - Method in interface nats.client.Subscription
Returns this subscription's NATS subject.
getSubject() - Method in class nats.codec.ClientPublishFrame
 
getSubject() - Method in class nats.codec.ClientSubscribeFrame
 
getSubject() - Method in class nats.codec.ServerPublishFrame
 
getUser() - Method in class nats.codec.ConnectBody
 

H

hasNext() - Method in class nats.client.BlockingQueueMessageIterator
 
hasNext() - Method in interface nats.client.MessageIterator
Returns true if this iterator is open.

I

idleTimeout(long) - Method in class nats.client.NatsConnector
Specifies the time duration the connection to the NATS server may be idle before the client closes the connection.
isClosed() - Method in class nats.client.MockNats
 
isClosed() - Method in interface nats.client.Nats
Indicates if this client has been closed.
isConnected() - Method in class nats.client.MockNats
 
isConnected() - Method in interface nats.client.Nats
Indicates if this client is connected to a NATS server.
isPedantic() - Method in class nats.codec.ConnectBody
 
isRequest() - Method in class nats.client.DefaultMessage
 
isRequest() - Method in interface nats.client.Message
Returns true if the message originated from a request, false if the message originated from a publish.
isVerbose() - Method in class nats.codec.ConnectBody
 
iterator() - Method in class nats.client.DefaultSubscription
 
iterator() - Method in interface nats.client.Subscription
Creates a MessageIterator that can be used for fetching messages from this subscription in a blocking manner.

M

maxFrameSize(int) - Method in class nats.client.NatsConnector
Specified the maximum message size that can be received by the Nats instance.
Message - Interface in nats.client
A NATS message.
MessageHandler - Interface in nats.client
Provides a callback method that gets invoked when a message is received.
MessageIterator - Interface in nats.client
Provides an Iterator for fetching Nats subscription messages in a blocking manner.
MockNats - Class in nats.client
Provide a mock instance of Nats to use primarily for testing purposes.
MockNats() - Constructor for class nats.client.MockNats
 

N

nats - package nats
 
Nats - Interface in nats.client
Provides the interface for publishing messages and subscribing to NATS subjects.
nats.client - package nats.client
 
nats.codec - package nats.codec
 
NatsClosedException - Exception in nats.client
Thrown when trying to use a Nats client that has been closed.
NatsClosedException() - Constructor for exception nats.client.NatsClosedException
 
NatsClosedException(String) - Constructor for exception nats.client.NatsClosedException
 
NatsConnector - Class in nats.client
 
NatsConnector() - Constructor for class nats.client.NatsConnector
 
NatsDecodingException - Exception in nats.codec
 
NatsDecodingException(String) - Constructor for exception nats.codec.NatsDecodingException
 
NatsException - Exception in nats
The root exception for all Nats exceptions.
NatsException(String) - Constructor for exception nats.NatsException
 
NatsException(String, Throwable) - Constructor for exception nats.NatsException
 
NatsException(Throwable) - Constructor for exception nats.NatsException
 
NatsFrame - Interface in nats.codec
Classes of this type are NATS frames to be encoded or decoded between a client and server.
NatsInterruptedException - Exception in nats
Thrown when the current thread has been interrupted.
NatsInterruptedException(InterruptedException) - Constructor for exception nats.NatsInterruptedException
 
next() - Method in class nats.client.BlockingQueueMessageIterator
 
next(long, TimeUnit) - Method in class nats.client.BlockingQueueMessageIterator
 
next() - Method in interface nats.client.MessageIterator
Returns the next Message sent by the Nats server.
next(long, TimeUnit) - Method in interface nats.client.MessageIterator
Returns the next Message sent by the Nats server within the specified time limit.

O

OK - Static variable in class nats.codec.ServerFrameEncoder
 
OK_MESSAGE - Static variable in class nats.codec.ServerOkFrame
 
okResponse(ChannelHandlerContext, ServerOkFrame) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
onConnectionStateChange(Nats, ConnectionStateListener.State) - Method in interface nats.client.ConnectionStateListener
 
onMessage(Message) - Method in class nats.client.BlockingQueueMessageIterator
 
onMessage(String, String, String, Executor) - Method in class nats.client.DefaultSubscription
 
onMessage(Message) - Method in interface nats.client.MessageHandler
 

P

parse(String) - Static method in class nats.codec.ConnectBody
 
pedantic(boolean) - Method in class nats.client.NatsConnector
Indicates whether the server should do extra checking, mostly around properly formed subjects.
PING - Static variable in class nats.codec.ClientFrameEncoder
 
PING - Static variable in class nats.codec.ClientPingFrame
 
PING - Static variable in class nats.codec.ServerFrameEncoder
 
PING - Static variable in class nats.codec.ServerPingFrame
 
pingInterval(long) - Method in class nats.client.NatsConnector
Specifies the time between sending ping requests to the Nats server.
PONG - Static variable in class nats.codec.ClientFrameEncoder
 
PONG - Static variable in class nats.codec.ClientPongFrame
 
PONG - Static variable in class nats.codec.ServerFrameEncoder
 
PONG - Static variable in class nats.codec.ServerPongFrame
 
pongResponse(ChannelHandlerContext, ServerPongFrame) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
PROTOCOL - Static variable in class nats.Constants
The name of the Nats protocol to use in URIs.
publish(String) - Method in class nats.client.MockNats
 
publish(String, String) - Method in class nats.client.MockNats
 
publish(String, String, String) - Method in class nats.client.MockNats
 
publish(String, long, TimeUnit) - Method in class nats.client.MockNats
 
publish(String, String, long, TimeUnit) - Method in class nats.client.MockNats
 
publish(String, String, String, long, TimeUnit) - Method in class nats.client.MockNats
 
publish(String) - Method in interface nats.client.Nats
Publishes a message with an empty body to the specified subject.
publish(String, String) - Method in interface nats.client.Nats
Publishes a message with the provided body to the specified subject.
publish(String, String, String) - Method in interface nats.client.Nats
Publishes a message with the provided body to the specified subject.
publish(String, long, TimeUnit) - Method in interface nats.client.Nats
Publishes a message with an empty body to the specified subject on a recurring basis according to the specified period.
publish(String, String, long, TimeUnit) - Method in interface nats.client.Nats
Publishes a message with the provided body to the specified subject on a recurring basis according to the specified period.
publish(String, String, String, long, TimeUnit) - Method in interface nats.client.Nats
Publishes a message with the provided body to the specified subject on a recurring basis according to the specified period.
publishedMessage(ChannelHandlerContext, ServerPublishFrame) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 

R

reconnectWaitTime(long, TimeUnit) - Method in class nats.client.NatsConnector
Specifies the amount of time to wait between connection attempts.
Registration - Interface in nats.client
Provides a mechanism for removing handlers such as a MessageHandler or MessageHandler or to cancel recurring publishes.
remove() - Method in class nats.client.BlockingQueueMessageIterator
 
remove() - Method in interface nats.client.MessageIterator
Throws an UnsupportedOperationException since you obviously can't remove a message after it has been received.
remove() - Method in interface nats.client.Registration
Removes the handler associated with this Registration.
reply(String) - Method in class nats.client.DefaultMessage
 
reply(String, long, TimeUnit) - Method in class nats.client.DefaultMessage
 
reply(String) - Method in interface nats.client.Message
Sends a reply to this message.
reply(String, long, TimeUnit) - Method in interface nats.client.Message
Sends a reply to this message after the specified delay has passed.
request(String, long, TimeUnit, MessageHandler...) - Method in class nats.client.MockNats
 
request(String, String, long, TimeUnit, MessageHandler...) - Method in class nats.client.MockNats
 
request(String, String, long, TimeUnit, Integer, MessageHandler...) - Method in class nats.client.MockNats
 
request(String, long, TimeUnit, MessageHandler...) - Method in interface nats.client.Nats
Sends a request on the given subject.
request(String, String, long, TimeUnit, MessageHandler...) - Method in interface nats.client.Nats
Sends a request body on the given subject.
request(String, String, long, TimeUnit, Integer, MessageHandler...) - Method in interface nats.client.Nats
Sends a request body on the given subject and will except a specified number of replies.
Request - Interface in nats.client
Holds the attributes associated with a request.

S

ServerConnectionFailedException - Exception in nats.client
 
ServerConnectionFailedException(String) - Constructor for exception nats.client.ServerConnectionFailedException
 
ServerErrorFrame - Class in nats.codec
 
ServerErrorFrame(String) - Constructor for class nats.codec.ServerErrorFrame
 
ServerFrame - Interface in nats.codec
 
ServerFrameDecoder - Class in nats.codec
Decodes frames sent from the server.
ServerFrameDecoder() - Constructor for class nats.codec.ServerFrameDecoder
 
ServerFrameDecoder(int) - Constructor for class nats.codec.ServerFrameDecoder
 
ServerFrameEncoder - Class in nats.codec
Encodes ServerFrame objects to binary to be sent over the network.
ServerFrameEncoder() - Constructor for class nats.codec.ServerFrameEncoder
 
serverInfo(ChannelHandlerContext, ServerInfoFrame) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
ServerInfoFrame - Class in nats.codec
 
ServerInfoFrame(String) - Constructor for class nats.codec.ServerInfoFrame
 
ServerOkFrame - Class in nats.codec
 
ServerOkFrame() - Constructor for class nats.codec.ServerOkFrame
 
serverPing(ChannelHandlerContext) - Method in class nats.codec.AbstractClientInboundMessageHandlerAdapter
 
ServerPingFrame - Class in nats.codec
 
ServerPingFrame() - Constructor for class nats.codec.ServerPingFrame
 
ServerPongFrame - Class in nats.codec
 
ServerPongFrame() - Constructor for class nats.codec.ServerPongFrame
 
ServerPublishFrame - Class in nats.codec
 
ServerPublishFrame(String, String, String, String) - Constructor for class nats.codec.ServerPublishFrame
 
subscribe(String, MessageHandler...) - Method in class nats.client.MockNats
 
subscribe(String, String, MessageHandler...) - Method in class nats.client.MockNats
 
subscribe(String, Integer, MessageHandler...) - Method in class nats.client.MockNats
 
subscribe(String, String, Integer, MessageHandler...) - Method in class nats.client.MockNats
 
subscribe(String, MessageHandler...) - Method in interface nats.client.Nats
Subscribes to the specified subject.
subscribe(String, String, MessageHandler...) - Method in interface nats.client.Nats
Subscribes to the specified subject within a specific queue group.
subscribe(String, Integer, MessageHandler...) - Method in interface nats.client.Nats
Subscribes to the specified subject and will automatically unsubscribe after the specified number of messages arrives.
subscribe(String, String, Integer, MessageHandler...) - Method in interface nats.client.Nats
Subscribes to the specified subject within a specific queue group and will automatically unsubscribe after the specified number of messages arrives.
Subscription - Interface in nats.client
Represents a NATS subscription.

T

toString() - Method in class nats.client.DefaultMessage
 

V

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

Copyright © 2015. All Rights Reserved.