Package org.apache.pulsar.broker.rest
Class RestMessagePublishContext
java.lang.Object
org.apache.pulsar.broker.rest.RestMessagePublishContext
- All Implemented Interfaces:
Topic.PublishContext
PublishContext implementation for REST message publishing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecuted from managed ledger thread when the message is persisted.static RestMessagePublishContextget(CompletableFuture<org.apache.bookkeeper.mledger.impl.PositionImpl> positionFuture, Topic topic, long startTimeNs) voidrecycle()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.broker.service.Topic.PublishContext
getHighestSequenceId, getNumberOfMessages, getOriginalHighestSequenceId, getOriginalProducerName, getOriginalSequenceId, getProducerName, getProperty, getSequenceId, isChunked, isMarkerMessage, setMetadataFromEntryData, setOriginalHighestSequenceId, setOriginalProducerName, setOriginalSequenceId, setProperty
-
Method Details
-
completed
Executed from managed ledger thread when the message is persisted.- Specified by:
completedin interfaceTopic.PublishContext
-
get
public static RestMessagePublishContext get(CompletableFuture<org.apache.bookkeeper.mledger.impl.PositionImpl> positionFuture, Topic topic, long startTimeNs) -
recycle
public void recycle()
-