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) |
ForceReconnectOptions.Builder |
flush(long flushWaitMillis) |
ForceReconnectOptions.Builder |
forceClose() |
public ForceReconnectOptions.Builder forceClose()
public ForceReconnectOptions.Builder flush(java.time.Duration flushWait)
flushWait
- if supplied and at least 1 millisecond, the forceReconnect will try to
flush before closing for the specified wait time. Flush happens before close
so not affected by forceClose optionpublic ForceReconnectOptions.Builder flush(long flushWaitMillis)
flushWaitMillis
- if supplied and at least 1 millisecond, the forceReconnect will try to
flush before closing for the specified wait time. Flush happens before close
so not affected by forceClose optionpublic ForceReconnectOptions build()