| Modifier and Type | Method and Description |
|---|---|
PubsubFuture<Void> |
PubsubFuture.acceptEither(CompletionStage<? extends T> other,
Consumer<? super T> action) |
PubsubFuture<Void> |
PubsubFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action) |
PubsubFuture<Void> |
PubsubFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action,
Executor executor) |
PubsubFuture<Void> |
Pubsub.acknowledge(String canonicalSubscriptionName,
List<String> ackIds)
Acknowledge a batch of received messages.
|
PubsubFuture<Void> |
Pubsub.acknowledge(String project,
String subscription,
List<String> ackIds)
Acknowledge a batch of received messages.
|
PubsubFuture<Void> |
Pubsub.acknowledge(String project,
String subscription,
String... ackIds)
Acknowledge a batch of received messages.
|
<U> PubsubFuture<U> |
PubsubFuture.applyToEither(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn,
Executor executor) |
PubsubFuture<Subscription> |
Pubsub.createSubscription(String canonicalSubscriptionName,
String canonicalTopic)
Create a Pub/Sub subscription.
|
PubsubFuture<Subscription> |
Pubsub.createSubscription(String project,
String subscriptionName,
String topic)
Create a Pub/Sub subscription.
|
PubsubFuture<Topic> |
Pubsub.createTopic(String project,
String topic)
Create a Pub/Sub topic.
|
PubsubFuture<Void> |
Pubsub.deleteSubscription(String canonicalSubscriptionName)
Delete a Pub/Sub subscription.
|
PubsubFuture<Void> |
Pubsub.deleteSubscription(String project,
String subscription)
Delete a Pub/Sub subscription.
|
PubsubFuture<Void> |
Pubsub.deleteTopic(String canonicalTopic)
Delete a Pub/Sub topic.
|
PubsubFuture<Void> |
Pubsub.deleteTopic(String project,
String topic)
Delete a Pub/Sub topic.
|
PubsubFuture<T> |
PubsubFuture.exceptionally(Function<Throwable,? extends T> fn) |
static <T> PubsubFuture<T> |
PubsubFuture.failedFuture(RequestInfo requestInfo,
Throwable t) |
PubsubFuture<Subscription> |
Pubsub.getSubscription(String canonicalSubscriptionName)
Get a Pub/Sub subscription.
|
PubsubFuture<Subscription> |
Pubsub.getSubscription(String project,
String subscription)
Get a Pub/Sub subscription.
|
PubsubFuture<Topic> |
Pubsub.getTopic(String canonicalTopic)
Get a Pub/Sub topic.
|
PubsubFuture<Topic> |
Pubsub.getTopic(String project,
String topic)
Get a Pub/Sub topic.
|
<U> PubsubFuture<U> |
PubsubFuture.handle(BiFunction<? super T,Throwable,? extends U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn,
Executor executor) |
PubsubFuture<SubscriptionList> |
Pubsub.listSubscriptions(String project)
List the Pub/Sub subscriptions in a project.
|
PubsubFuture<SubscriptionList> |
Pubsub.listSubscriptions(String project,
String pageToken)
Get a page of Pub/Sub subscriptions in a project using a specified page token.
|
PubsubFuture<TopicList> |
Pubsub.listTopics(String project)
List the Pub/Sub topics in a project.
|
PubsubFuture<TopicList> |
Pubsub.listTopics(String project,
String pageToken)
Get a page of Pub/Sub topics in a project using a specified page token.
|
PubsubFuture<Void> |
Pubsub.modifyAckDeadline(String canonicalSubscriptionName,
int ackDeadlineSeconds,
List<String> ackIds)
Modify the ack deadline for a list of received messages.
|
PubsubFuture<Void> |
Pubsub.modifyAckDeadline(String project,
String subscription,
int ackDeadlineSeconds,
List<String> ackIds)
Modify the ack deadline for a list of received messages.
|
PubsubFuture<Void> |
Pubsub.modifyAckDeadline(String project,
String subscription,
int ackDeadlineSeconds,
String... ackIds)
Modify the ack deadline for a list of received messages.
|
static <T> PubsubFuture<T> |
PubsubFuture.of(RequestInfo requestInfo) |
PubsubFuture<List<String>> |
Pubsub.publish(List<Message> messages,
String canonicalTopic)
Publish a batch of messages.
|
PubsubFuture<List<String>> |
Pubsub.publish(String project,
String topic,
List<Message> messages)
Publish a batch of messages.
|
PubsubFuture<List<String>> |
Pubsub.publish(String project,
String topic,
Message... messages)
Publish a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String canonicalSubscriptionName)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String canonicalSubscriptionName,
boolean returnImmediately)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String canonicalSubscriptionName,
boolean returnImmediately,
int maxMessages)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String path,
com.spotify.google.cloud.pubsub.client.PullRequest pullRequest)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String project,
String subscription)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String project,
String subscription,
boolean returnImmediately)
Pull a batch of messages.
|
PubsubFuture<List<ReceivedMessage>> |
Pubsub.pull(String project,
String subscription,
boolean returnImmediately,
int maxMessages)
Pull a batch of messages.
|
PubsubFuture<Void> |
PubsubFuture.runAfterBoth(CompletionStage<?> other,
Runnable action) |
PubsubFuture<Void> |
PubsubFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action) |
PubsubFuture<Void> |
PubsubFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
PubsubFuture<Void> |
PubsubFuture.runAfterEither(CompletionStage<?> other,
Runnable action) |
PubsubFuture<Void> |
PubsubFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action) |
PubsubFuture<Void> |
PubsubFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
static <T> PubsubFuture<T> |
PubsubFuture.succeededFuture(RequestInfo requestInfo,
T value) |
PubsubFuture<Void> |
PubsubFuture.thenAccept(Consumer<? super T> action) |
PubsubFuture<Void> |
PubsubFuture.thenAcceptAsync(Consumer<? super T> action) |
PubsubFuture<Void> |
PubsubFuture.thenAcceptAsync(Consumer<? super T> action,
Executor executor) |
<U> PubsubFuture<Void> |
PubsubFuture.thenAcceptBoth(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> PubsubFuture<Void> |
PubsubFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> PubsubFuture<Void> |
PubsubFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action,
Executor executor) |
<U> PubsubFuture<U> |
PubsubFuture.thenApply(Function<? super T,? extends U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.thenApplyAsync(Function<? super T,? extends U> fn) |
<U> PubsubFuture<U> |
PubsubFuture.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor) |
<U,V> PubsubFuture<V> |
PubsubFuture.thenCombine(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> PubsubFuture<V> |
PubsubFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> PubsubFuture<V> |
PubsubFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn,
Executor executor) |
<U> PubsubFuture<U> |
PubsubFuture.thenCompose(Function<? super T,? extends CompletionStage<U>> fn) |
<U> PubsubFuture<U> |
PubsubFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn) |
<U> PubsubFuture<U> |
PubsubFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn,
Executor executor) |
PubsubFuture<Void> |
PubsubFuture.thenRun(Runnable action) |
PubsubFuture<Void> |
PubsubFuture.thenRunAsync(Runnable action) |
PubsubFuture<Void> |
PubsubFuture.thenRunAsync(Runnable action,
Executor executor) |
PubsubFuture<T> |
PubsubFuture.toCompletableFuture() |
PubsubFuture<T> |
PubsubFuture.whenComplete(BiConsumer<? super T,? super Throwable> action) |
PubsubFuture<T> |
PubsubFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action) |
PubsubFuture<T> |
PubsubFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
default void |
Publisher.Listener.sendingBatch(Publisher publisher,
String topic,
List<Message> batch,
PubsubFuture<List<String>> future)
Called when a
Publisher is sending a batch of messages to Google Cloud Pub/Sub. |
void |
Publisher.ListenerAdapter.sendingBatch(Publisher publisher,
String topic,
List<Message> batch,
PubsubFuture<List<String>> future) |
Copyright © 2018. All rights reserved.