| Package | Description |
|---|---|
| nats.client |
| Modifier and Type | Method and Description |
|---|---|
NatsConnector |
NatsConnector.addConnectionStateListener(ConnectionStateListener listener)
Adds a
ConnectionStateListener to the client. |
NatsConnector |
NatsConnector.addHost(String uri)
Adds a URI to the list of URIs that will be used to connect to a Nats server by the
Nats instance. |
NatsConnector |
NatsConnector.addHost(URI uri)
Adds a URI to the list of URIs that will be used to connect to a Nats server by the
Nats instance. |
NatsConnector |
NatsConnector.automaticReconnect(boolean automaticReconnect)
Indicates whether a reconnect should be attempted automatically if the Nats server connection fails.
|
NatsConnector |
NatsConnector.calllbackExecutor(Executor executor)
Specifies the executor to use for invoking callbacks such as
ConnectionStateListener.onConnectionStateChange(Nats, nats.client.ConnectionStateListener.State) and
MessageHandler.onMessage(Message). |
NatsConnector |
NatsConnector.eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Specifies the Netty
EventLoopGroup to use for connecting to the Nats server(s). |
NatsConnector |
NatsConnector.idleTimeout(long idleTimeout)
Specifies the time duration the connection to the NATS server may be idle before the client closes the
connection.
|
NatsConnector |
NatsConnector.maxFrameSize(int maxFrameSize)
Specified the maximum message size that can be received by the Nats instance.
|
NatsConnector |
NatsConnector.pedantic(boolean pedantic)
Indicates whether the server should do extra checking, mostly around properly formed subjects.
|
NatsConnector |
NatsConnector.pingInterval(long pingInterval)
Specifies the time between sending ping requests to the Nats server.
|
NatsConnector |
NatsConnector.reconnectWaitTime(long time,
TimeUnit unit)
Specifies the amount of time to wait between connection attempts.
|
Copyright © 2015. All Rights Reserved.