| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Puller.Builder |
batchSize(int batchSize)
Set the Google Cloud Pub/Sub pull batch size.
|
Puller |
build()
Build a
Puller. |
Puller.Builder |
concurrency(int concurrency)
Set the Google Cloud Pub/Sub request concurrency level.
|
Puller.Builder |
maxAckQueueSize(int maxAckQueueSize)
Set the max size for the queue of acks back to Google Cloud Pub/Sub.
|
Puller.Builder |
maxBackoffMultiplier(int maxBackoffMultiplier)
Set the maximum backoff multiplier.
|
Puller.Builder |
maxOutstandingMessages(int maxOutstandingMessages)
Set the limit of outstanding messages pending handling.
|
Puller.Builder |
messageHandler(Puller.MessageHandler messageHandler)
The handler to call for received messages.
|
Puller.Builder |
project(String project)
Set the Google Cloud project to pull from.
|
Puller.Builder |
pubsub(Pubsub pubsub)
Set the
Pubsub client to use. |
Puller.Builder |
pullIntervalMillis(long pullIntervalMillis)
Set the pull interval in millis.
|
Puller.Builder |
subscription(String subscription)
The subscription to pull from.
|
public Puller.Builder pubsub(Pubsub pubsub)
public Puller.Builder project(String project)
public Puller.Builder subscription(String subscription)
public Puller.Builder messageHandler(Puller.MessageHandler messageHandler)
public Puller.Builder concurrency(int concurrency)
64.public Puller.Builder batchSize(int batchSize)
1000.public Puller.Builder maxOutstandingMessages(int maxOutstandingMessages)
64000.public Puller.Builder maxAckQueueSize(int maxAckQueueSize)
10 * batchSize.public Puller.Builder pullIntervalMillis(long pullIntervalMillis)
1000 millis.public Puller.Builder maxBackoffMultiplier(int maxBackoffMultiplier)
0 (no backoff).Copyright © 2018. All rights reserved.