public static interface PubSubRpc.PullFuture extends Future<com.google.pubsub.v1.PullResponse>
Future implementation for pull RPCs. This class also allows users to register
callbacks via #addCallback(PullCallback).| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(PubSubRpc.PullCallback callback)
Registers a callback to be run on the given executor.
|
void addCallback(PubSubRpc.PullCallback callback)
Registered callbacks are run using the same thread that run the RPC call. Only lightweight callbacks should be registered via this method.
Copyright © 2016 Google. All rights reserved.