Class AckBatchingSubscriber (1.2.0)

public class AckBatchingSubscriber implements CloudPubSubSubscriber

Inheritance

java.lang.Object > AckBatchingSubscriber

Constructors

AckBatchingSubscriber(CloudPubSubSubscriber underlying, AckBatchingSubscriber.AlarmFactory alarmFactory)

public AckBatchingSubscriber(CloudPubSubSubscriber underlying, AckBatchingSubscriber.AlarmFactory alarmFactory)
Parameters
NameDescription
underlyingCloudPubSubSubscriber
alarmFactorycom.google.pubsub.kafka.source.AckBatchingSubscriber.AlarmFactory

Methods

ackMessages(Collection<String> ackIds)

public synchronized ApiFuture<Empty> ackMessages(Collection<String> ackIds)
Parameter
NameDescription
ackIdsCollection<String>
Returns
TypeDescription
ApiFuture<Empty>

close()

public void close()

pull()

public ApiFuture<List<ReceivedMessage>> pull()
Returns
TypeDescription
ApiFuture<List<com.google.pubsub.v1.ReceivedMessage>>