Uses of Class
org.apache.qpid.protonj2.client.TransportOptions
Package
Description
-
Uses of TransportOptions in org.apache.qpid.protonj2.client
Modifier and TypeMethodDescriptionTransportOptions.addWebSocketHeader
(String key, String value) Additional headers to be passed along to the remote when performing a WebSocket based connect.TransportOptions.allowNativeIO
(boolean allowNativeIO) Determines if the a native IO implementation is preferred to the JDK based IO.TransportOptions.clone()
TransportOptions.connectTimeout
(int connectTimeout) A transport layer connection timeout value that controls how long a connection attempt can block before giving up and throwing a connection error.TransportOptions.copyInto
(TransportOptions other) Copy all configuration into the givenTransportOptions
from this instance.TransportOptions.defaultTcpPort
(int defaultTcpPort) The default unsecured connection port to use when none has been specified by the user.TransportOptions.localAddress
(String localAddress) The local address to bind to when attempting a remote connection.TransportOptions.localPort
(int localPort) Configures the local port value to bind to when connecting to the remote, if that port is already in use this can lead to a connection error.TransportOptions.receiveBufferSize
(int receiveBufferSize) Sets the receive buffer size in bytes, the value must be greater than zero or anIllegalArgumentException
will be thrown.TransportOptions.sendBufferSize
(int sendBufferSize) Sets the send buffer size in bytes, the value must be greater than zero or anIllegalArgumentException
will be thrown.TransportOptions.soLinger
(int soLinger) Configures the soLinger value that should be configured on the connection socket.TransportOptions.soTimeout
(int soTimeout) Sets the value to use when configuring the socket level soTimeout option.TransportOptions.tcpKeepAlive
(boolean keepAlive) Configures the TCP socket keep-alive value that should be used for a connection.TransportOptions.tcpNoDelay
(boolean tcpNoDelay) Configure the underlying connection to use the tcpNoDelay option.TransportOptions.traceBytes
(boolean traceBytes) Determines if the transport should add a logger for bytes in / outTransportOptions.trafficClass
(int trafficClass) Sets the traffic class value used by the TCP connection, valid range is between 0 and 255.ConnectionOptions.transportOptions()
TransportOptions.useWebSockets
(boolean webSockets) Set to true to configure the transport layer as a WebSocket based connection.TransportOptions.webSocketMaxFrameSize
(int maxFrameSize) Configures the maximum size of each WebSocket frame, payloads larger than the max frame size are split into multiple frames during transmission.TransportOptions.webSocketPath
(String webSocketPath) The optional path element to provide when connecting via a WebSocket.Modifier and TypeMethodDescriptionTransportOptions.copyInto
(TransportOptions other) Copy all configuration into the givenTransportOptions
from this instance. -
Uses of TransportOptions in org.apache.qpid.protonj2.client.transport
Modifier and TypeMethodDescriptionstatic IOContext
IOContext.create
(TransportOptions options, SslOptions sslOptions, String ioThreadName) Create an IOContext from the available options. -
Uses of TransportOptions in org.apache.qpid.protonj2.client.transport.netty4
Modifier and TypeMethodDescriptionstatic boolean
EpollSupport.isAvailable
(TransportOptions transportOptions) static boolean
IOUringSupport.isAvailable
(TransportOptions transportOptions) static boolean
KQueueSupport.isAvailable
(TransportOptions transportOptions) ModifierConstructorDescriptionNetty4IOContext
(TransportOptions options, SslOptions ssl, String ioThreadName) TcpTransport
(io.netty.bootstrap.Bootstrap bootstrap, TransportOptions options, SslOptions sslOptions) Create a newTcpTransport
instance with the given configuration.WebSocketTransport
(io.netty.bootstrap.Bootstrap bootstrap, TransportOptions options, SslOptions sslOptions) Create a newWebSocketTransport
instance with the given configuration. -
Uses of TransportOptions in org.apache.qpid.protonj2.client.transport.netty5
Modifier and TypeMethodDescriptionstatic boolean
EpollSupport.isAvailable
(TransportOptions transportOptions) static boolean
IOUringSupport.isAvailable
(TransportOptions transportOptions) static boolean
KQueueSupport.isAvailable
(TransportOptions transportOptions) ModifierConstructorDescriptionNetty5IOContext
(TransportOptions options, SslOptions ssl, String ioThreadName) TcpTransport
(io.netty5.bootstrap.Bootstrap bootstrap, TransportOptions options, SslOptions sslOptions) Create a newTcpTransport
instance with the given configuration.WebSocketTransport
(io.netty5.bootstrap.Bootstrap bootstrap, TransportOptions options, SslOptions sslOptions) Create a newWebSocketTransport
instance with the given configuration.