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>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidflush()protected voidcom.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, startMethods 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
-
Method Details
-
publish
- Specified by:
publishin interfacePublisher<MessageMetadata>
-
cancelOutstandingPublishes
public void cancelOutstandingPublishes()- Specified by:
cancelOutstandingPublishesin interfacePublisher<MessageMetadata>
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
stop
protected void stop()- Overrides:
stopin classProxyService
-
handlePermanentError
- Overrides:
handlePermanentErrorin classProxyService
-