public class RestMessagePublishContext extends Object implements Topic.PublishContext
| Modifier and Type | Method and Description |
|---|---|
void |
completed(Exception exception,
long ledgerId,
long entryId)
Executed from managed ledger thread when the message is persisted.
|
static RestMessagePublishContext |
get(CompletableFuture<PositionImpl> positionFuture,
Topic topic,
long startTimeNs) |
void |
recycle() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHighestSequenceId, getNumberOfMessages, getOriginalHighestSequenceId, getOriginalProducerName, getOriginalSequenceId, getProducerName, getSequenceId, isMarkerMessage, setMetadataFromEntryData, setOriginalHighestSequenceId, setOriginalProducerName, setOriginalSequenceIdpublic void completed(Exception exception, long ledgerId, long entryId)
completed in interface Topic.PublishContextpublic static RestMessagePublishContext get(CompletableFuture<PositionImpl> positionFuture, Topic topic, long startTimeNs)
public void recycle()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.