protected abstract static class BaseConsumeOptions.Builder<B,CO>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract CO |
build()
Build the ConsumeOptions.
|
protected B |
bytes(int bytes,
int messages) |
B |
expiresIn(long expiresInMillis)
In Fetch, sets the maximum amount of time to wait to reach the batch size or max byte.
|
protected abstract B |
getThis() |
protected B |
messages(int messages) |
B |
thresholdPercent(int thresholdPct)
Set the threshold percent of max bytes (if max bytes is specified) or messages
that will trigger issuing pull requests to keep messages flowing.
|
protected abstract B getThis()
protected B messages(int messages)
protected B bytes(int bytes, int messages)
public B expiresIn(long expiresInMillis)
expiresInMillis - the millispublic B thresholdPercent(int thresholdPct)
thresholdPct - the percent from 1 to 100 inclusive.public abstract CO build()