Package com.rabbitmq.client
Class SocketConfigurators
- java.lang.Object
-
- com.rabbitmq.client.SocketConfigurators
-
public abstract class SocketConfigurators extends Object
Ready-to-use instances and builder forSocketConfigurator
.Note
SocketConfigurator
s can be combined withSocketConfigurators.AbstractSocketConfigurator.andThen(SocketConfigurator)
.- Since:
- 4.8.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SocketConfigurators.AbstractSocketConfigurator
static class
SocketConfigurators.Builder
-
Field Summary
Fields Modifier and Type Field Description static SocketConfigurators.AbstractSocketConfigurator
DEFAULT
DefaultSocketConfigurator
that disables Nagle's algorithm.static SocketConfigurators.AbstractSocketConfigurator
DISABLE_NAGLE_ALGORITHM
Disable Nagle's algorithm.static SocketConfigurators.AbstractSocketConfigurator
ENABLE_HOSTNAME_VERIFICATION
Enable server hostname validation for TLS connections.
-
Constructor Summary
Constructors Constructor Description SocketConfigurators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketConfigurators.Builder
builder()
Builder to configure and creates aSocketConfigurator
instance.static SocketConfigurators.AbstractSocketConfigurator
defaultConfigurator()
The defaultSocketConfigurator
that disables Nagle's algorithm.static SocketConfigurators.AbstractSocketConfigurator
disableNagleAlgorithm()
SocketConfigurator
that disables Nagle's algorithm.static SocketConfigurators.AbstractSocketConfigurator
enableHostnameVerification()
SocketConfigurator
that enable server hostname verification for TLS connections.
-
-
-
Field Detail
-
DISABLE_NAGLE_ALGORITHM
public static final SocketConfigurators.AbstractSocketConfigurator DISABLE_NAGLE_ALGORITHM
Disable Nagle's algorithm.
-
DEFAULT
public static final SocketConfigurators.AbstractSocketConfigurator DEFAULT
DefaultSocketConfigurator
that disables Nagle's algorithm.
-
ENABLE_HOSTNAME_VERIFICATION
public static final SocketConfigurators.AbstractSocketConfigurator ENABLE_HOSTNAME_VERIFICATION
Enable server hostname validation for TLS connections.Requires Java 7 or more.
-
-
Method Detail
-
defaultConfigurator
public static SocketConfigurators.AbstractSocketConfigurator defaultConfigurator()
The defaultSocketConfigurator
that disables Nagle's algorithm.- Returns:
-
disableNagleAlgorithm
public static SocketConfigurators.AbstractSocketConfigurator disableNagleAlgorithm()
SocketConfigurator
that disables Nagle's algorithm.- Returns:
-
enableHostnameVerification
public static SocketConfigurators.AbstractSocketConfigurator enableHostnameVerification()
SocketConfigurator
that enable server hostname verification for TLS connections.Requires Java 7 or more.
- Returns:
-
builder
public static SocketConfigurators.Builder builder()
Builder to configure and creates aSocketConfigurator
instance.- Returns:
-
-