Class PartitionCountWatchingPublisher
- java.lang.Object
-
- com.google.api.core.AbstractApiService
-
- com.google.cloud.pubsublite.internal.ProxyService
-
- com.google.cloud.pubsublite.internal.wire.PartitionCountWatchingPublisher
-
- All Implemented Interfaces:
com.google.api.core.ApiService,Publisher<MessageMetadata>,Flushable
public class PartitionCountWatchingPublisher extends ProxyService implements Publisher<MessageMetadata>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelOutstandingPublishes()voidflush()protected voidhandlePermanentError(CheckedApiException error)com.google.api.core.ApiFuture<MessageMetadata>publish(PubSubMessage message)protected voidstop()-
Methods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, onPermanentError, start
-
Methods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
-
-
-
-
Method Detail
-
publish
public com.google.api.core.ApiFuture<MessageMetadata> publish(PubSubMessage message)
- Specified by:
publishin interfacePublisher<MessageMetadata>
-
cancelOutstandingPublishes
public void cancelOutstandingPublishes()
- Specified by:
cancelOutstandingPublishesin interfacePublisher<MessageMetadata>
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
stop
protected void stop()
- Overrides:
stopin classProxyService
-
handlePermanentError
protected void handlePermanentError(CheckedApiException error)
- Overrides:
handlePermanentErrorin classProxyService
-
-