ChannelHandler implementation which allows to dynamically replace the used
remoteAddress and / or localAddress when making a connection attempt.
This can be useful to for example bind to a specific NetworkInterface based on
the remoteAddress.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Future | connect(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the connect operation is madethe remoteAddress, SocketAddress SocketAddress to which it should connectthe localAddress)SocketAddress which is used as source on connectOverrides default io. |
| protected SocketAddress | localAddress(SocketAddress remoteAddress, SocketAddress localAddress)
Returns the local |
| protected SocketAddress | remoteAddress(SocketAddress remoteAddress, SocketAddress localAddress)
Returns the remote |
| DynamicAddressConnectHandler | back to summary |
|---|---|
| public DynamicAddressConnectHandler() | |
| connect | back to summary |
|---|---|
| public final Future Overrides default io. Doc from io. Called once a connect operation is made.
| |
| localAddress | back to summary |
|---|---|
| protected SocketAddress localAddress(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Returns the local | |
| remoteAddress | back to summary |
|---|---|
| protected SocketAddress remoteAddress(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Returns the remote | |