Class RestMessagePublishContext

  • All Implemented Interfaces:
    Topic.PublishContext

    public class RestMessagePublishContext
    extends java.lang.Object
    implements Topic.PublishContext
    PublishContext implementation for REST message publishing.
    • 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:
        completed in interface Topic.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()