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 Summary
ConstructorDescriptionStaticConsumerState
(String clientId, Set<io.nats.client.Subscription> subscriptions, io.nats.client.Dispatcher dispatcher, io.nats.client.Connection connection) default constructor. -
Method Summary
-
Constructor Details
-
StaticConsumerState
public 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 idsubscriptions
- the subscriptions of the consumerdispatcher
- the dispatcher of the consumerconnection
- the connection of the consumer
-
-
Method Details
-
getClientId
-
getSubscriptions
-
getDispatcher
public io.nats.client.Dispatcher getDispatcher() -
getConnection
public io.nats.client.Connection getConnection() -
close
public void close()
-