public static class ForceReconnectOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Constructs a new Builder with the default values.
|
| Modifier and Type | Method and Description |
|---|---|
ForceReconnectOptions |
build()
Builds the ForceReconnectOptions.
|
ForceReconnectOptions.Builder |
flush(java.time.Duration flushWait)
if supplied and at least 1 millisecond, the forceReconnect will try to
flush before closing for the specified wait time.
|
ForceReconnectOptions.Builder |
flush(long flushWaitMillis)
if supplied and at least 1 millisecond, the forceReconnect will try to
flush before closing for the specified wait time.
|
ForceReconnectOptions.Builder |
forceClose()
set the force close flag to true
|
public ForceReconnectOptions.Builder forceClose()
public ForceReconnectOptions.Builder flush(java.time.Duration flushWait)
flushWait - the flush wait duratonpublic ForceReconnectOptions.Builder flush(long flushWaitMillis)
flushWaitMillis - the flush wait millispublic ForceReconnectOptions build()