Class OutgoingMessage<T>

java.lang.Object
io.smallrye.reactive.messaging.pulsar.OutgoingMessage<T>
Type Parameters:
T - value type

public class OutgoingMessage<T> extends Object
Pulsar outgoing message as payload
  • Constructor Details

    • OutgoingMessage

      public OutgoingMessage(T value)
    • OutgoingMessage

      public OutgoingMessage(String key, T value)
  • Method Details

    • of

      public static <T> OutgoingMessage<T> of(String key, T value)
    • from

      public static <T> OutgoingMessage<T> from(org.apache.pulsar.client.api.Message<T> incoming)
    • hasKey

      public boolean hasKey()
    • getKeyBytes

      public byte[] getKeyBytes()
    • withKeyBytes

      public OutgoingMessage<T> withKeyBytes(byte[] keyBytes)
    • getKey

      public String getKey()
    • withKey

      public OutgoingMessage<T> withKey(String key)
    • getOrderingKey

      public byte[] getOrderingKey()
    • withOrderingKey

      public OutgoingMessage<T> withOrderingKey(byte[] orderingKey)
    • getProperties

      public Map<String,String> getProperties()
    • withProperties

      public OutgoingMessage<T> withProperties(Map<String,String> properties)
    • getReplicatedClusters

      public List<String> getReplicatedClusters()
    • withReplicatedClusters

      public OutgoingMessage<T> withReplicatedClusters(List<String> replicatedClusters)
    • getReplicationDisabled

      public boolean getReplicationDisabled()
    • withDisabledReplication

      public OutgoingMessage<T> withDisabledReplication()
    • getEventTime

      public Long getEventTime()
    • withEventTime

      public OutgoingMessage<T> withEventTime(long eventTime)
    • getSequenceId

      public Long getSequenceId()
    • withSequenceId

      public OutgoingMessage<T> withSequenceId(long sequenceId)
    • getDeliverAt

      public Long getDeliverAt()
    • withDeliverAt

      public OutgoingMessage<T> withDeliverAt(long deliverAt)
    • getValue

      public T getValue()
    • withValue

      public <O> OutgoingMessage<O> withValue(O value)
    • getTransaction

      public org.apache.pulsar.client.api.transaction.Transaction getTransaction()
    • withTransaction

      public OutgoingMessage<T> withTransaction(org.apache.pulsar.client.api.transaction.Transaction txn)