Class PulsarOutgoingMessage<T>

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

public class PulsarOutgoingMessage<T> extends Object implements PulsarMessage<T>, ContextAwareMessage<T>
  • Constructor Details

  • Method Details

    • from

      public static <T> PulsarOutgoingMessage<T> from(org.eclipse.microprofile.reactive.messaging.Message<T> message)
      Description copied from interface: PulsarMessage
      Creates a new outgoing Pulsar message.
      Type Parameters:
      T - the type of the value
      Parameters:
      message - the incoming message
      Returns:
      the new outgoing Pulsar message
    • 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>
    • getMetadata

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

      public Function<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> getAckWithMetadata()
      Specified by:
      getAckWithMetadata in interface org.eclipse.microprofile.reactive.messaging.Message<T>
    • getNackWithMetadata

      public BiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> getNackWithMetadata()
      Specified by:
      getNackWithMetadata in interface org.eclipse.microprofile.reactive.messaging.Message<T>