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
public class SinglePartitionSubscriber extends ProxyService implements Subscriber
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandlePermanentError(CheckedApiException error)protected voidstart()protected voidstop()-
Methods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, onPermanentError
-
Methods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
-
-
-
-
Constructor Detail
-
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 Detail
-
handlePermanentError
protected void handlePermanentError(CheckedApiException error)
- Overrides:
handlePermanentErrorin classProxyService
-
start
protected void start() throws CheckedApiException- Overrides:
startin classProxyService- Throws:
CheckedApiException
-
stop
protected void stop()
- Overrides:
stopin classProxyService
-
-