public class SubscriberImpl extends ProxyService implements Subscriber, RetryingConnectionObserver<ConnectedSubscriber.Response>
| Constructor and Description |
|---|
SubscriberImpl(SubscriberServiceClient client,
InitialSubscribeRequest initialRequest,
Consumer<com.google.common.collect.ImmutableList<SequencedMessage>> messageConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowFlow(FlowControlRequest clientRequest) |
protected void |
handlePermanentError(CheckedApiException error) |
void |
onClientResponse(ConnectedSubscriber.Response value) |
com.google.api.core.ApiFuture<Offset> |
seek(SeekRequest request) |
boolean |
seekInFlight() |
protected void |
start() |
protected void |
stop() |
void |
triggerReinitialize() |
addServices, addServices, doStart, doStop, onPermanentErroraddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncpublic SubscriberImpl(SubscriberServiceClient client, InitialSubscribeRequest initialRequest, Consumer<com.google.common.collect.ImmutableList<SequencedMessage>> messageConsumer) 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 triggerReinitialize()
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.