Top Description Fields Constructors Methods
io.netty.handler.address

public Class ResolveAddressHandler

extends ChannelOutboundHandlerAdapter
Class Inheritance
Annotations
@Sharable
Imports
io.netty.channel.ChannelHandler.Sharable, .ChannelHandlerContext, .ChannelOutboundHandlerAdapter, .ChannelPromise, io.netty.resolver.AddressResolver, .AddressResolverGroup, io.netty.util.concurrent.Future, .FutureListener, io.netty.util.internal.ObjectUtil, java.net.SocketAddress

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.

Field Summary

Modifier and TypeField and Description
private final AddressResolverGroup<? extends SocketAddress>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
connect(final ChannelHandlerContext
the ChannelHandlerContext for which the connect operation is made
ctx
,
SocketAddress
the SocketAddress to which it should connect
remoteAddress
,
final SocketAddress
the SocketAddress which is used as source on connect
localAddress
,
final ChannelPromise
the ChannelPromise to notify once the operation completes
promise
)

Overrides io.netty.channel.ChannelOutboundHandlerAdapter.connect.

Implements io.netty.channel.ChannelOutboundHandler.connect.

Calls ChannelHandlerContext#connect(SocketAddress, SocketAddress, ChannelPromise) to forward to the next ChannelOutboundHandler in the ChannelPipeline.
Inherited from io.netty.channel.ChannelOutboundHandlerAdapter:
bindclosederegisterdisconnectflushreadwrite

Field Detail

resolverGroupback to summary
private final AddressResolverGroup<? extends SocketAddress> resolverGroup

Constructor Detail

ResolveAddressHandlerback to summary
public ResolveAddressHandler(AddressResolverGroup<? extends SocketAddress> resolverGroup)

Method Detail

connectback to summary
public void connect(final ChannelHandlerContext ctx, SocketAddress remoteAddress, final SocketAddress localAddress, final ChannelPromise promise)

Overrides io.netty.channel.ChannelOutboundHandlerAdapter.connect.

Implements io.netty.channel.ChannelOutboundHandler.connect.

Doc from io.netty.channel.ChannelOutboundHandlerAdapter.connect.

Calls ChannelHandlerContext#connect(SocketAddress, SocketAddress, ChannelPromise) to forward to the next ChannelOutboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Parameters
ctx:ChannelHandlerContext

Doc from io.netty.channel.ChannelOutboundHandler.connect.

the ChannelHandlerContext for which the connect operation is made

remoteAddress:SocketAddress

Doc from io.netty.channel.ChannelOutboundHandler.connect.

the SocketAddress to which it should connect

localAddress:SocketAddress

Doc from io.netty.channel.ChannelOutboundHandler.connect.

the SocketAddress which is used as source on connect

promise:ChannelPromise

Doc from io.netty.channel.ChannelOutboundHandler.connect.

the ChannelPromise to notify once the operation completes

Annotations
@Override