Class SinglePartitionSubscriber
java.lang.Object
com.google.api.core.AbstractApiService
com.google.cloud.pubsublite.internal.ProxyService
com.google.cloud.pubsublite.cloudpubsub.internal.SinglePartitionSubscriber
- All Implemented Interfaces:
com.google.api.core.ApiService,com.google.cloud.pubsub.v1.SubscriberInterface,Subscriber
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.core.ApiService
com.google.api.core.ApiService.Listener, com.google.api.core.ApiService.State -
Constructor Summary
ConstructorsConstructorDescriptionSinglePartitionSubscriber(com.google.cloud.pubsub.v1.MessageReceiver receiver, MessageTransformer<SequencedMessage, com.google.pubsub.v1.PubsubMessage> transformer, com.google.cloud.pubsublite.cloudpubsub.internal.AckSetTracker ackSetTracker, NackHandler nackHandler, ResettableSubscriberFactory wireSubscriberFactory, FlowControlSettings flowControlSettings) -
Method Summary
Methods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, onPermanentErrorMethods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.core.ApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Constructor Details
-
SinglePartitionSubscriber
public SinglePartitionSubscriber(com.google.cloud.pubsub.v1.MessageReceiver receiver, MessageTransformer<SequencedMessage, com.google.pubsub.v1.PubsubMessage> transformer, com.google.cloud.pubsublite.cloudpubsub.internal.AckSetTracker ackSetTracker, NackHandler nackHandler, ResettableSubscriberFactory wireSubscriberFactory, FlowControlSettings flowControlSettings) throws com.google.api.gax.rpc.ApiException- Throws:
com.google.api.gax.rpc.ApiException
-
-
Method Details
-
handlePermanentError
- Overrides:
handlePermanentErrorin classProxyService
-
start
- Overrides:
startin classProxyService- Throws:
CheckedApiException
-
stop
protected void stop()- Overrides:
stopin classProxyService
-