Package com.rabbitmq.client
Class DefaultSocketConfigurator
- java.lang.Object
-
- com.rabbitmq.client.DefaultSocketConfigurator
-
- All Implemented Interfaces:
SocketConfigurator
public class DefaultSocketConfigurator extends java.lang.Object implements SocketConfigurator
-
-
Constructor Summary
Constructors Constructor Description DefaultSocketConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(java.net.Socket socket)
Provides a hook to insert custom configuration of the sockets used to connect to an AMQP server before they connect.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.rabbitmq.client.SocketConfigurator
andThen
-
-
-
-
Method Detail
-
configure
public void configure(java.net.Socket socket) throws java.io.IOException
Provides a hook to insert custom configuration of the sockets used to connect to an AMQP server before they connect. The default behaviour of this method is to disable Nagle's algorithm to get more consistently low latency. However it may be overridden freely and there is no requirement to retain this behaviour.- Specified by:
configure
in interfaceSocketConfigurator
- Parameters:
socket
- The socket that is to be used for the Connection- Throws:
java.io.IOException
-
-