| Package | Description |
|---|---|
| nats.client |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockingQueueMessageIterator
A
MessageIterator that is backed by a LinkedBlockingQueue. |
| Modifier and Type | Method and Description |
|---|---|
Registration |
Subscription.addMessageHandler(MessageHandler messageHandler)
Registers a
MessageHandler instance with this subscription that will be invoked every time the
subscription receives a message. |
Registration |
DefaultSubscription.addMessageHandler(MessageHandler messageHandler) |
Request |
Nats.request(String subject,
long timeout,
TimeUnit unit,
MessageHandler... messageHandlers)
Sends a request on the given subject.
|
Request |
MockNats.request(String subject,
long timeout,
TimeUnit unit,
MessageHandler... messageHandlers) |
Request |
Nats.request(String subject,
String message,
long timeout,
TimeUnit unit,
Integer maxReplies,
MessageHandler... messageHandlers)
Sends a request body on the given subject and will except a specified number of replies.
|
Request |
MockNats.request(String subject,
String message,
long timeout,
TimeUnit unit,
Integer maxReplies,
MessageHandler... messageHandlers) |
Request |
Nats.request(String subject,
String message,
long timeout,
TimeUnit unit,
MessageHandler... messageHandlers)
Sends a request body on the given subject.
|
Request |
MockNats.request(String subject,
String message,
long timeout,
TimeUnit unit,
MessageHandler... messageHandlers) |
Subscription |
Nats.subscribe(String subject,
Integer maxMessages,
MessageHandler... messageHandlers)
Subscribes to the specified subject and will automatically unsubscribe after the specified number of messages
arrives.
|
Subscription |
MockNats.subscribe(String subject,
Integer maxMessages,
MessageHandler... messageHandlers) |
Subscription |
Nats.subscribe(String subject,
MessageHandler... messageHandlers)
Subscribes to the specified subject.
|
Subscription |
MockNats.subscribe(String subject,
MessageHandler... messageHandlers) |
Subscription |
Nats.subscribe(String subject,
String queueGroup,
Integer maxMessages,
MessageHandler... messageHandlers)
Subscribes to the specified subject within a specific queue group and will automatically unsubscribe after the
specified number of messages arrives.
|
Subscription |
MockNats.subscribe(String subject,
String queueGroup,
Integer maxMessages,
MessageHandler... messageHandlers) |
Subscription |
Nats.subscribe(String subject,
String queueGroup,
MessageHandler... messageHandlers)
Subscribes to the specified subject within a specific queue group.
|
Subscription |
MockNats.subscribe(String subject,
String queueGroup,
MessageHandler... messageHandlers) |
| Constructor and Description |
|---|
DefaultSubscription(String subject,
String queueGroup,
Integer maxMessages,
MessageHandler... messageHandlers) |
Copyright © 2015. All Rights Reserved.