public class SubscriberImpl extends ProxyService implements Subscriber, RetryingConnectionObserver<List<SequencedMessage>>
| Constructor and Description |
|---|
SubscriberImpl(StreamFactories.SubscribeStreamFactory streamFactory,
InitialSubscribeRequest baseInitialRequest,
SeekRequest initialLocation,
Consumer<List<SequencedMessage>> messageConsumer,
SubscriberResetHandler resetHandler,
boolean retryStreamRaces) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowFlow(FlowControlRequest clientRequest) |
protected void |
handlePermanentError(CheckedApiException error) |
void |
onClientResponse(List<SequencedMessage> messages) |
void |
reset() |
protected void |
start() |
protected void |
stop() |
void |
triggerReinitialize(CheckedApiException streamError) |
addServices, addServices, doStart, doStop, onPermanentErroraddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncpublic SubscriberImpl(StreamFactories.SubscribeStreamFactory streamFactory, InitialSubscribeRequest baseInitialRequest, SeekRequest initialLocation, Consumer<List<SequencedMessage>> messageConsumer, SubscriberResetHandler resetHandler, boolean retryStreamRaces) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServiceprotected void handlePermanentError(CheckedApiException error)
handlePermanentError in class ProxyServicepublic void allowFlow(FlowControlRequest clientRequest) throws CheckedApiException
allowFlow in interface SubscriberCheckedApiExceptionpublic void reset()
public void triggerReinitialize(CheckedApiException streamError)
triggerReinitialize in interface RetryingConnectionObserver<List<SequencedMessage>>public void onClientResponse(List<SequencedMessage> messages) throws CheckedApiException
onClientResponse in interface RetryingConnectionObserver<List<SequencedMessage>>CheckedApiExceptionCopyright © 2023 Google LLC. All rights reserved.