Package io.micronaut.nats.intercept
Class StaticConsumerState
java.lang.Object
io.micronaut.nats.intercept.StaticConsumerState
Manages the consumer state for nats and jetstream.
- Since:
- 4.0.0
- Author:
- Joachim Grimm
- 
Constructor SummaryConstructorsConstructorDescriptionStaticConsumerState(String clientId, Set<io.nats.client.Subscription> subscriptions, io.nats.client.Dispatcher dispatcher, io.nats.client.Connection connection) default constructor.
- 
Method Summary
- 
Constructor Details- 
StaticConsumerStatepublic StaticConsumerState(String clientId, Set<io.nats.client.Subscription> subscriptions, io.nats.client.Dispatcher dispatcher, io.nats.client.Connection connection) default constructor.- Parameters:
- clientId- the client id
- subscriptions- the subscriptions of the consumer
- dispatcher- the dispatcher of the consumer
- connection- the connection of the consumer
 
 
- 
- 
Method Details- 
getClientId
- 
getSubscriptions
- 
getDispatcherpublic io.nats.client.Dispatcher getDispatcher()
- 
getConnectionpublic io.nats.client.Connection getConnection()
- 
closepublic void close()
 
-