Package com.rabbitmq.client
Class DefaultSocketChannelConfigurator
java.lang.Object
com.rabbitmq.client.DefaultSocketChannelConfigurator
- All Implemented Interfaces:
SocketChannelConfigurator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(SocketChannel socketChannel) Provides a hook to insert custom configuration of theSocketChannels 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, waitMethods inherited from interface com.rabbitmq.client.SocketChannelConfigurator
andThen
-
Constructor Details
-
DefaultSocketChannelConfigurator
public DefaultSocketChannelConfigurator()
-
-
Method Details
-
configure
Provides a hook to insert custom configuration of theSocketChannels 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:
configurein interfaceSocketChannelConfigurator- Parameters:
socketChannel- The socket channel that is to be used for the Connection- Throws:
IOException
-