public interface SequencedPublisher<ResponseT> extends com.google.api.core.ApiService, Flushable
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOutstandingPublishes()
Attempts to cancel all outstanding publishes.
|
com.google.api.core.ApiFuture<ResponseT> |
publish(Message message,
PublishSequenceNumber sequenceNumber)
Publish a new message with an assigned sequence number.
|
com.google.api.core.ApiFuture<ResponseT> publish(Message message, PublishSequenceNumber sequenceNumber)
Behavior is undefined if a call to flush() is outstanding or close() has already been called. This method never blocks.
Guarantees that if a single publish future has an exception set, all publish calls made after that will also have an exception set.
void cancelOutstandingPublishes()
Copyright © 2023 Google LLC. All rights reserved.