| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Acker.Builder |
batchSize(int batchSize)
Set the Google Cloud Pub/Sub ack batch size.
|
Acker |
build()
Build an
Acker. |
Acker.Builder |
concurrency(int concurrency)
Set the Google Cloud Pub/Sub request concurrency level.
|
Acker.Builder |
maxBackoffMultiplier(int maxBackoffMultiplier)
Set the maximum backoff multiplier.
|
Acker.Builder |
maxLatencyMs(long maxLatencyMs)
Set the maximum latency in millis before sending an incomplete Google Cloud Pub/Sub ack batch request.
|
Acker.Builder |
project(String project)
Set the Google Cloud project to ack on from.
|
Acker.Builder |
pubsub(Pubsub pubsub)
Set the
Pubsub client to use. |
Acker.Builder |
queueSize(Integer queueSize)
Set the ack queue size.
|
Acker.Builder |
subscription(String subscription)
The subscription to ack on from.
|
public Acker.Builder pubsub(Pubsub pubsub)
public Acker.Builder project(String project)
public Acker.Builder subscription(String subscription)
public Acker.Builder concurrency(int concurrency)
64.public Acker.Builder batchSize(int batchSize)
1000.public Acker.Builder queueSize(Integer queueSize)
batchSize * concurrency * 10.public Acker.Builder maxLatencyMs(long maxLatencyMs)
1000 ms.public Acker.Builder maxBackoffMultiplier(int maxBackoffMultiplier)
0 (no backoff).Copyright © 2018. All rights reserved.