Class DefaultSocketConfigurator

java.lang.Object
com.rabbitmq.client.DefaultSocketConfigurator
All Implemented Interfaces:
SocketConfigurator

public class DefaultSocketConfigurator extends Object implements SocketConfigurator
  • Constructor Details

    • DefaultSocketConfigurator

      public DefaultSocketConfigurator()
  • Method Details

    • configure

      public void configure(Socket socket) throws 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 interface SocketConfigurator
      Parameters:
      socket - The socket that is to be used for the Connection
      Throws:
      IOException