@ChannelHandler.Sharable public class ResolveAddressHandler extends ChannelOutboundHandlerAdapter
ChannelOutboundHandlerAdapter which will resolve the SocketAddress that is passed to
connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise) if it is not already resolved
and the AddressResolver supports the type of SocketAddress.ChannelHandler.Sharable| Constructor and Description |
|---|
ResolveAddressHandler(AddressResolverGroup<? extends SocketAddress> resolverGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelPromise promise)
Calls
ChannelOutboundInvoker.connect(SocketAddress, SocketAddress, ChannelPromise) to forward
to the next ChannelOutboundHandler in the ChannelPipeline. |
bind, close, deregister, disconnect, flush, read, writeensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic ResolveAddressHandler(AddressResolverGroup<? extends SocketAddress> resolverGroup)
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
ChannelOutboundHandlerAdapterChannelOutboundInvoker.connect(SocketAddress, SocketAddress, ChannelPromise) to forward
to the next ChannelOutboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.connect in interface ChannelOutboundHandlerconnect in class ChannelOutboundHandlerAdapterctx - the ChannelHandlerContext for which the connect operation is maderemoteAddress - the SocketAddress to which it should connectlocalAddress - the SocketAddress which is used as source on connectpromise - the ChannelPromise to notify once the operation completesCopyright © 2008–2025 The Netty Project. All rights reserved.