Package io.micronaut.nats.bind
Class NatsSubscriptionBinder
java.lang.Object
io.micronaut.nats.bind.NatsSubscriptionBinder
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<io.nats.client.Subscription,
,io.nats.client.Message> io.micronaut.core.bind.TypeArgumentBinder<io.nats.client.Subscription,
,io.nats.client.Message> NatsArgumentBinder<io.nats.client.Subscription>
,NatsTypeArgumentBinder<io.nats.client.Subscription>
@Singleton
public class NatsSubscriptionBinder
extends Object
implements NatsTypeArgumentBinder<io.nats.client.Subscription>
Binds an argument of type
Subscription
from the Message
.- Since:
- 3.1.0
- Author:
- Joachim Grimm
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<io.nats.client.Subscription>
io.micronaut.core.bind.ArgumentBinder.BindingResult<io.nats.client.Subscription>
bind
(io.micronaut.core.convert.ArgumentConversionContext<io.nats.client.Subscription> context, io.nats.client.Message source)
-
Constructor Details
-
NatsSubscriptionBinder
public NatsSubscriptionBinder()
-
-
Method Details
-
argumentType
public io.micronaut.core.type.Argument<io.nats.client.Subscription> argumentType()- Specified by:
argumentType
in interfaceio.micronaut.core.bind.TypeArgumentBinder<io.nats.client.Subscription,
io.nats.client.Message>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<io.nats.client.Subscription> bind(io.micronaut.core.convert.ArgumentConversionContext<io.nats.client.Subscription> context, io.nats.client.Message source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<io.nats.client.Subscription,
io.nats.client.Message>
-