| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Publisher.Builder |
batchSize(int batchSize)
Set the maximum batch size.
|
Publisher |
build()
Build a
Publisher. |
Publisher.Builder |
concurrency(int concurrency)
Set the Google Cloud Pub/Sub request concurrency level.
|
Publisher.Builder |
listener(Publisher.Listener listener)
Set a
Publisher.Listener for monitoring operations performed by the Publisher. |
Publisher.Builder |
maxLatencyMs(long maxLatencyMs)
Set the maximum latency in millis before sending an incomplete Google Cloud Pub/Sub publish batch request.
|
Publisher.Builder |
project(String project)
Set the Google Cloud project to publish to.
|
Publisher.Builder |
pubsub(Pubsub pubsub)
Set the
Pubsub client to use. |
Publisher.Builder |
queueSize(Integer queueSize)
Set the per-topic queue size.
|
public Publisher.Builder pubsub(Pubsub pubsub)
public Publisher.Builder project(String project)
public Publisher.Builder batchSize(int batchSize)
1000, which is also the maximum Google Cloud Pub/Sub batch size.public Publisher.Builder queueSize(Integer queueSize)
batchSize * concurrency * 10.public Publisher.Builder concurrency(int concurrency)
64.public Publisher.Builder maxLatencyMs(long maxLatencyMs)
100 ms.public Publisher.Builder listener(Publisher.Listener listener)
Publisher.Listener for monitoring operations performed by the Publisher.Copyright © 2018. All rights reserved.