| Package | Description |
|---|---|
| nats.client |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultSubscription
Provides an abstract implementation of the
Subscription interface. |
| Modifier and Type | Method and Description |
|---|---|
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) |
Copyright © 2015. All Rights Reserved.