public static class SessionOptions.Builder extends Object
SesssionOptions
object with custom settings.Modifier and Type | Method and Description |
---|---|
SessionOptions |
build()
Creates a
SesssionOptions object based on this Builder properties. |
SessionOptions.Builder |
setBrokerUri(URI value)
Sets URI to connect with the broker.
|
SessionOptions.Builder |
setCloseQueueTimeout(Duration value)
Sets timeout value for close queue operation
|
SessionOptions.Builder |
setConfigureQueueTimeout(Duration value)
Sets timeout value for configure queue operation
|
SessionOptions.Builder |
setHostHealthMonitor(HostHealthMonitor value)
Sets host health monitor object.
|
SessionOptions.Builder |
setInboundBufferWaterMark(SessionOptions.InboundEventBufferWaterMark value)
Sets low and high inbound buffer watermark values
|
SessionOptions.Builder |
setOpenQueueTimeout(Duration value)
Sets timeout value for open queue operation
|
SessionOptions.Builder |
setStartTimeout(Duration value)
Sets session start timeout
|
SessionOptions.Builder |
setStatsDumpInterval(Duration value)
Sets the stats dump interval to the specified 'value'.
|
SessionOptions.Builder |
setStopTimeout(Duration value)
Sets session stop timeout
|
SessionOptions.Builder |
setWriteBufferWaterMark(SessionOptions.WriteBufferWaterMark value)
Sets low and high channel watermark values
|
public SessionOptions build()
SesssionOptions
object based on this Builder
properties.public SessionOptions.Builder setBrokerUri(URI value)
value
- URI to setIllegalArgumentException
- in case of invalid URI valuepublic SessionOptions.Builder setStartTimeout(Duration value)
value
- start timeout valueIllegalArgumentException
- in case of timeout value is zero or negativepublic SessionOptions.Builder setStopTimeout(Duration value)
value
- stop timeout valueIllegalArgumentException
- in case of timeout value is zero or negativepublic SessionOptions.Builder setWriteBufferWaterMark(SessionOptions.WriteBufferWaterMark value)
value
- holder object for watermark valuesIllegalArgumentException
- in case of any of watermark values are zero or negativepublic SessionOptions.Builder setInboundBufferWaterMark(SessionOptions.InboundEventBufferWaterMark value)
value
- holder object for watermark valuespublic SessionOptions.Builder setStatsDumpInterval(Duration value)
value
- stats dump interval valueIllegalArgumentException
- in case of interval value is negativepublic SessionOptions.Builder setOpenQueueTimeout(Duration value)
value
- timeout valueIllegalArgumentException
- in case of timeout value is zero or negativepublic SessionOptions.Builder setConfigureQueueTimeout(Duration value)
value
- timeout valueIllegalArgumentException
- in case of timeout value is zero or negativepublic SessionOptions.Builder setCloseQueueTimeout(Duration value)
value
- timeout valueIllegalArgumentException
- in case of timeout value is zero or negativepublic SessionOptions.Builder setHostHealthMonitor(HostHealthMonitor value)
value
- host health monitor objectNullPointerException
- if the specified value is nullCopyright © 2023 Bloomberg L.P.. All rights reserved.