public static final class PubSub.PullOption extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PubSub.PullOption |
executorFactory(GrpcServiceOptions.ExecutorFactory executorFactory)
Returns an option to specify the executor used to execute message processor callbacks.
|
int |
hashCode() |
static PubSub.PullOption |
maxQueuedCallbacks(int maxQueuedCallbacks)
Returns an option to specify the maximum number of messages that can be queued in the message
consumer at any time.
|
String |
toString() |
public static PubSub.PullOption maxQueuedCallbacks(int maxQueuedCallbacks)
public static PubSub.PullOption executorFactory(GrpcServiceOptions.ExecutorFactory executorFactory)
The GrpcServiceOptions.ExecutorFactory object can be used to handle creation and release of the
executor, possibly reusing existing executors. GrpcServiceOptions.ExecutorFactory.get() is called when
the message consumer is created. GrpcServiceOptions.ExecutorFactory.release(ExecutorService) is called
when the message consumer is closed.
For the created option to be serializable, the provided executor factory should implement
Serializable.
executorFactory - the executor factory.Copyright © 2016 Google. All rights reserved.