Class StreamingPullSubscriber (1.2.0)

public class StreamingPullSubscriber implements CloudPubSubSubscriber

Inheritance

java.lang.Object > StreamingPullSubscriber

Constructors

StreamingPullSubscriber(StreamingPullSubscriberFactory factory)

public StreamingPullSubscriber(StreamingPullSubscriberFactory factory)
Parameter
Name Description
factory StreamingPullSubscriberFactory

Methods

ackMessages(Collection<String> ackIds)

public synchronized ApiFuture<Empty> ackMessages(Collection<String> ackIds)
Parameter
Name Description
ackIds Collection<String>
Returns
Type Description
ApiFuture<Empty>

close()

public void close()

pull()

public synchronized ApiFuture<List<ReceivedMessage>> pull()
Returns
Type Description
ApiFuture<List<com.google.pubsub.v1.ReceivedMessage>>