Class BufferingPullSubscriber
- java.lang.Object
-
- com.google.cloud.pubsublite.internal.BufferingPullSubscriber
-
- All Implemented Interfaces:
PullSubscriber<SequencedMessage>,AutoCloseable
public class BufferingPullSubscriber extends Object implements PullSubscriber<SequencedMessage>
-
-
Constructor Summary
Constructors Constructor Description BufferingPullSubscriber(SubscriberFactory factory, FlowControlSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<Offset>nextOffset()List<SequencedMessage>pull()
-
-
-
Constructor Detail
-
BufferingPullSubscriber
public BufferingPullSubscriber(SubscriberFactory factory, FlowControlSettings settings) throws CheckedApiException
- Throws:
CheckedApiException
-
-
Method Detail
-
pull
public List<SequencedMessage> pull() throws CheckedApiException
- Specified by:
pullin interfacePullSubscriber<SequencedMessage>- Throws:
CheckedApiException
-
nextOffset
public Optional<Offset> nextOffset()
- Specified by:
nextOffsetin interfacePullSubscriber<SequencedMessage>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-