Class StreamingPullSubscriber (0.1.1)

public class StreamingPullSubscriber implements CloudPubSubSubscriber

Inheritance

java.lang.Object > StreamingPullSubscriber

Constructors

StreamingPullSubscriber(StreamingPullSubscriberFactory factory)

public StreamingPullSubscriber(StreamingPullSubscriberFactory factory)
Parameter
NameDescription
factoryStreamingPullSubscriberFactory

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 synchronized ApiFuture<List<ReceivedMessage>> pull()
Returns
TypeDescription
ApiFuture<List<com.google.pubsub.v1.ReceivedMessage>>