Package com.rabbitmq.client
Class SocketConfigurators.Builder
- java.lang.Object
-
- com.rabbitmq.client.SocketConfigurators.Builder
-
- Enclosing class:
- SocketConfigurators
public static class SocketConfigurators.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketConfigurators.Builder
add(SocketConfigurator extraConfiguration)
Add an extra configuration step.SocketConfigurator
build()
Return the configuredSocketConfigurator
.SocketConfigurators.Builder
defaultConfigurator()
Set default configuration.SocketConfigurators.Builder
disableNagleAlgorithm()
Disable Nagle's Algorithm.SocketConfigurators.Builder
enableHostnameVerification()
Enable server hostname verification for TLS connections.
-
-
-
Method Detail
-
defaultConfigurator
public SocketConfigurators.Builder defaultConfigurator()
Set default configuration.- Returns:
-
disableNagleAlgorithm
public SocketConfigurators.Builder disableNagleAlgorithm()
Disable Nagle's Algorithm.- Returns:
-
enableHostnameVerification
public SocketConfigurators.Builder enableHostnameVerification()
Enable server hostname verification for TLS connections.Requires Java 7 or more.
- Returns:
-
add
public SocketConfigurators.Builder add(SocketConfigurator extraConfiguration)
Add an extra configuration step.- Parameters:
extraConfiguration
-- Returns:
-
build
public SocketConfigurator build()
Return the configuredSocketConfigurator
.- Returns:
-
-