Package org.apache.pulsar.broker.rest
Class RestMessagePublishContext
- java.lang.Object
-
- org.apache.pulsar.broker.rest.RestMessagePublishContext
-
- All Implemented Interfaces:
Topic.PublishContext
public class RestMessagePublishContext extends java.lang.Object implements Topic.PublishContext
PublishContext implementation for REST message publishing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleted(java.lang.Exception exception, long ledgerId, long entryId)Executed from managed ledger thread when the message is persisted.static RestMessagePublishContextget(java.util.concurrent.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, wait
-
Methods inherited from interface org.apache.pulsar.broker.service.Topic.PublishContext
getHighestSequenceId, getNumberOfMessages, getOriginalHighestSequenceId, getOriginalProducerName, getOriginalSequenceId, getProducerName, getProperty, getSequenceId, isMarkerMessage, setMetadataFromEntryData, setOriginalHighestSequenceId, setOriginalProducerName, setOriginalSequenceId, setProperty
-
-
-
-
Method Detail
-
completed
public void completed(java.lang.Exception exception, long ledgerId, long entryId)Executed from managed ledger thread when the message is persisted.- Specified by:
completedin interfaceTopic.PublishContext
-
get
public static RestMessagePublishContext get(java.util.concurrent.CompletableFuture<org.apache.bookkeeper.mledger.impl.PositionImpl> positionFuture, Topic topic, long startTimeNs)
-
recycle
public void recycle()
-
-