Class AcknowledgementBinder<T extends io.micronaut.messaging.Acknowledgement>

java.lang.Object
io.micronaut.nats.jetstream.bind.AcknowledgementBinder<T>
Type Parameters:
T - Any type that extends Acknowledgement
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<T,io.nats.client.Message>, io.micronaut.core.bind.TypeArgumentBinder<T,io.nats.client.Message>, NatsArgumentBinder<T>, NatsTypeArgumentBinder<T>
Direct Known Subclasses:
NatsAcknowledgementBinder

@Singleton @Internal public class AcknowledgementBinder<T extends io.micronaut.messaging.Acknowledgement> extends Object implements NatsTypeArgumentBinder<T>
Binds an argument of type Acknowledgement from the Message.
Since:
4.0.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<T>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<T>
    bind(io.micronaut.core.convert.ArgumentConversionContext<T> 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

    • AcknowledgementBinder

      public AcknowledgementBinder()
  • Method Details

    • argumentType

      public io.micronaut.core.type.Argument<T> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<T extends io.micronaut.messaging.Acknowledgement,io.nats.client.Message>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, io.nats.client.Message source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<T extends io.micronaut.messaging.Acknowledgement,io.nats.client.Message>