类 PersistentAcknowledgmentsGroupingTracker

  • 所有已实现的接口:
    java.lang.AutoCloseable, AcknowledgmentsGroupingTracker

    public class PersistentAcknowledgmentsGroupingTracker
    extends java.lang.Object
    implements AcknowledgmentsGroupingTracker
    Group the acknowledgements for a certain time and then sends them out in a single protobuf command.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.util.concurrent.CompletableFuture<java.lang.Void> addAcknowledgment​(MessageIdImpl msgId, org.apache.pulsar.common.api.proto.CommandAck.AckType ackType, java.util.Map<java.lang.String,​java.lang.Long> properties)  
      java.util.concurrent.CompletableFuture<java.lang.Void> addListAcknowledgment​(java.util.List<org.apache.pulsar.client.api.MessageId> messageIds, org.apache.pulsar.common.api.proto.CommandAck.AckType ackType, java.util.Map<java.lang.String,​java.lang.Long> properties)  
      void close()  
      void flush()
      Flush all the pending acks and send them to the broker
      void flushAndClean()  
      boolean isDuplicate​(org.apache.pulsar.client.api.MessageId messageId)
      Since the ack are delayed, we need to do some best-effort duplicate check to discard messages that are being resent after a disconnection and for which the user has already sent an acknowledgement.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • PersistentAcknowledgmentsGroupingTracker

        public PersistentAcknowledgmentsGroupingTracker​(ConsumerImpl<?> consumer,
                                                        ConsumerConfigurationData<?> conf,
                                                        io.netty.channel.EventLoopGroup eventLoopGroup)
    • 方法详细资料

      • isDuplicate

        public boolean isDuplicate​(org.apache.pulsar.client.api.MessageId messageId)
        Since the ack are delayed, we need to do some best-effort duplicate check to discard messages that are being resent after a disconnection and for which the user has already sent an acknowledgement.
        指定者:
        isDuplicate 在接口中 AcknowledgmentsGroupingTracker
      • addListAcknowledgment

        public java.util.concurrent.CompletableFuture<java.lang.Void> addListAcknowledgment​(java.util.List<org.apache.pulsar.client.api.MessageId> messageIds,
                                                                                            org.apache.pulsar.common.api.proto.CommandAck.AckType ackType,
                                                                                            java.util.Map<java.lang.String,​java.lang.Long> properties)
        指定者:
        addListAcknowledgment 在接口中 AcknowledgmentsGroupingTracker
      • addAcknowledgment

        public java.util.concurrent.CompletableFuture<java.lang.Void> addAcknowledgment​(MessageIdImpl msgId,
                                                                                        org.apache.pulsar.common.api.proto.CommandAck.AckType ackType,
                                                                                        java.util.Map<java.lang.String,​java.lang.Long> properties)
        指定者:
        addAcknowledgment 在接口中 AcknowledgmentsGroupingTracker