Package com.rabbitmq.client
Class SocketConfigurators
java.lang.Object
com.rabbitmq.client.SocketConfigurators
Ready-to-use instances and builder for
SocketConfigurator
.
Note SocketConfigurator
s can be combined with
SocketConfigurator.andThen(SocketConfigurator)
.
- Since:
- 5.4.0
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SocketConfigurator
DefaultSocketConfigurator
that disables Nagle's algorithm.static final SocketConfigurator
Disable Nagle's algorithm.static final SocketConfigurator
Enable server hostname validation for TLS connections. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SocketConfigurators.Builder
builder()
Builder to configure and creates aSocketConfigurator
instance.static SocketConfigurator
The defaultSocketConfigurator
that disables Nagle's algorithm.static SocketConfigurator
SocketConfigurator
that disables Nagle's algorithm.static SocketConfigurator
SocketConfigurator
that enable server hostname verification for TLS connections.
-
Field Details
-
DISABLE_NAGLE_ALGORITHM
Disable Nagle's algorithm. -
DEFAULT
DefaultSocketConfigurator
that disables Nagle's algorithm. -
ENABLE_HOSTNAME_VERIFICATION
Enable server hostname validation for TLS connections.
-
-
Constructor Details
-
SocketConfigurators
public SocketConfigurators()
-
-
Method Details
-
defaultConfigurator
The defaultSocketConfigurator
that disables Nagle's algorithm.- Returns:
-
disableNagleAlgorithm
SocketConfigurator
that disables Nagle's algorithm.- Returns:
-
enableHostnameVerification
SocketConfigurator
that enable server hostname verification for TLS connections.- Returns:
-
builder
Builder to configure and creates aSocketConfigurator
instance.- Returns:
-