Package com.rabbitmq.client
Interface SocketConfigurator
-
- All Known Implementing Classes:
DefaultSocketConfigurator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SocketConfigurator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SocketConfiguratorandThen(SocketConfigurator after)Returns a composed configurator that performs, in sequence, this operation followed by theafteroperation.voidconfigure(java.net.Socket socket)Provides a hook to insert custom configuration of the sockets used to connect to an AMQP server before they connect.
-
-
-
Method Detail
-
configure
void configure(java.net.Socket socket) throws java.io.IOExceptionProvides a hook to insert custom configuration of the sockets used to connect to an AMQP server before they connect.- Throws:
java.io.IOException
-
andThen
default SocketConfigurator andThen(SocketConfigurator after)
Returns a composed configurator that performs, in sequence, this operation followed by theafteroperation.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed configurator that performs in sequence this
operation followed by the
afteroperation - Throws:
java.lang.NullPointerException- ifafteris null
-
-