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 void
close()
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:
pull
in interfacePullSubscriber<SequencedMessage>
- Throws:
CheckedApiException
-
nextOffset
public Optional<Offset> nextOffset()
- Specified by:
nextOffset
in interfacePullSubscriber<SequencedMessage>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-