Class PulsarIncomingMessage<T>

java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarIncomingMessage<T>
All Implemented Interfaces:
ContextAwareMessage<T>, MetadataInjectableMessage<T>, PulsarIdMessage<T>, PulsarMessage<T>, org.eclipse.microprofile.reactive.messaging.Message<T>

public class PulsarIncomingMessage<T> extends Object implements PulsarMessage<T>, PulsarIdMessage<T>, MetadataInjectableMessage<T>
  • Constructor Details

  • Method Details

    • getMessageId

      public org.apache.pulsar.client.api.MessageId getMessageId()
      Specified by:
      getMessageId in interface PulsarIdMessage<T>
    • getPayload

      public T getPayload()
      Specified by:
      getPayload in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • getKey

      public String getKey()
      Specified by:
      getKey in interface PulsarMessage<T>
    • getKeyBytes

      public byte[] getKeyBytes()
      Specified by:
      getKeyBytes in interface PulsarMessage<T>
    • hasKey

      public boolean hasKey()
      Specified by:
      hasKey in interface PulsarMessage<T>
    • getOrderingKey

      public byte[] getOrderingKey()
      Specified by:
      getOrderingKey in interface PulsarMessage<T>
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface PulsarMessage<T>
    • getEventTime

      public long getEventTime()
      Specified by:
      getEventTime in interface PulsarMessage<T>
    • getSequenceId

      public long getSequenceId()
      Specified by:
      getSequenceId in interface PulsarMessage<T>
    • getPublishTime

      public long getPublishTime()
    • unwrap

      public org.apache.pulsar.client.api.Message<T> unwrap()
    • getMetadata

      public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()
      Specified by:
      getMetadata in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • ack

      public CompletionStage<Void> ack()
      Specified by:
      ack in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • getAck

      public Supplier<CompletionStage<Void>> getAck()
      Specified by:
      getAck in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • nack

      public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata)
      Specified by:
      nack in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • getNack

      public Function<Throwable,CompletionStage<Void>> getNack()
      Specified by:
      getNack in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • injectMetadata

      public void injectMetadata(Object metadataObject)
      Specified by:
      injectMetadata in interface MetadataInjectableMessage<T>