Package com.turtlequeue
Class MessageImpl<T>
- java.lang.Object
-
- com.turtlequeue.MessageImpl<T>
-
-
Constructor Summary
Constructors Constructor Description MessageImpl(ClientImpl c, ConsumerImpl<T> consumer, MessageIdImpl messageId, T payload, String producerName, Long eventTime, Long publishTime, Topic topic, String key, Map<String,String> properties, ProducerImpl<T> producer, Boolean isReplicated, String replicatedFrom, Long delay, TimeUnit delayTimeUnit, Integer redeliveryCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>acknowledge()booleanequals(Object o)ClientgetClient()Consumer<T>getConsumer()TgetData()TimeUnitgetDelayTimeUnit()LonggetDelayValue()LonggetEventTime()StringgetKey()MessageIdgetMessageId()Producer<T>getProducer()StringgetProducerName()Map<String,String>getProperties()LonggetPublishTime()IntegergetRedeliveryCount()StringgetReplicatedFrom()TopicgetTopic()inthashCode()booleanisReplicated()StringtoString()
-
-
-
Constructor Detail
-
MessageImpl
public MessageImpl(ClientImpl c, ConsumerImpl<T> consumer, MessageIdImpl messageId, T payload, String producerName, Long eventTime, Long publishTime, Topic topic, String key, Map<String,String> properties, ProducerImpl<T> producer, Boolean isReplicated, String replicatedFrom, Long delay, TimeUnit delayTimeUnit, Integer redeliveryCount)
-
-
Method Detail
-
getMessageId
public MessageId getMessageId()
- Specified by:
getMessageIdin interfaceMessage<T>
-
getConsumer
public Consumer<T> getConsumer()
- Specified by:
getConsumerin interfaceMessage<T>
-
getProducerName
public String getProducerName()
- Specified by:
getProducerNamein interfaceMessage<T>
-
getEventTime
public Long getEventTime()
- Specified by:
getEventTimein interfaceMessage<T>
-
getPublishTime
public Long getPublishTime()
- Specified by:
getPublishTimein interfaceMessage<T>
-
isReplicated
public boolean isReplicated()
- Specified by:
isReplicatedin interfaceMessage<T>
-
getReplicatedFrom
public String getReplicatedFrom()
- Specified by:
getReplicatedFromin interfaceMessage<T>
-
getRedeliveryCount
public Integer getRedeliveryCount()
- Specified by:
getRedeliveryCountin interfaceMessage<T>
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceMessage<T>
-
acknowledge
public CompletableFuture<Void> acknowledge()
- Specified by:
acknowledgein interfaceMessage<T>
-
getDelayValue
public Long getDelayValue()
- Specified by:
getDelayValuein interfaceMessage<T>
-
getDelayTimeUnit
public TimeUnit getDelayTimeUnit()
- Specified by:
getDelayTimeUnitin interfaceMessage<T>
-
getProducer
public Producer<T> getProducer()
- Specified by:
getProducerin interfaceMessage<T>
-
-