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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NatsSubscriptionBinder

      public NatsSubscriptionBinder()
  • Method Details

    • argumentType

      public io.micronaut.core.type.Argument<io.nats.client.Subscription> argumentType()
      Specified by:
      argumentType in interface io.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 interface io.micronaut.core.bind.ArgumentBinder<io.nats.client.Subscription,io.nats.client.Message>