public class SubscriberImpl extends ProxyService implements Subscriber, RetryingConnectionObserver<ConnectedSubscriber.Response>
| Constructor and Description |
|---|
SubscriberImpl(SubscriberServiceClient client,
InitialSubscribeRequest baseInitialRequest,
SeekRequest initialLocation,
Consumer<com.google.common.collect.ImmutableList<SequencedMessage>> messageConsumer,
SubscriberResetHandler resetHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowFlow(FlowControlRequest clientRequest) |
protected void |
handlePermanentError(CheckedApiException error) |
void |
onClientResponse(ConnectedSubscriber.Response value) |
void |
reset() |
com.google.api.core.ApiFuture<Offset> |
seek(SeekRequest request) |
boolean |
seekInFlight() |
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(SubscriberServiceClient client, InitialSubscribeRequest baseInitialRequest, SeekRequest initialLocation, Consumer<com.google.common.collect.ImmutableList<SequencedMessage>> messageConsumer, SubscriberResetHandler resetHandler) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionprotected void handlePermanentError(CheckedApiException error)
handlePermanentError in class ProxyServiceprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServicepublic com.google.api.core.ApiFuture<Offset> seek(SeekRequest request)
seek in interface Subscriberpublic boolean seekInFlight()
seekInFlight in interface Subscriberpublic void allowFlow(FlowControlRequest clientRequest) throws CheckedApiException
allowFlow in interface SubscriberCheckedApiExceptionpublic void reset()
public void triggerReinitialize(CheckedApiException streamError)
triggerReinitialize in interface RetryingConnectionObserver<ConnectedSubscriber.Response>public void onClientResponse(ConnectedSubscriber.Response value) throws CheckedApiException
onClientResponse in interface RetryingConnectionObserver<ConnectedSubscriber.Response>CheckedApiExceptionCopyright © 2021 Google LLC. All rights reserved.