TransportConnector is a helper class that creates, initializes and registers the channel.
It performs the actual connect operation to the remote peer or binds the channel.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AttributeKey | |
| pack-priv static final Logger | |
| pack-priv static final Predicate |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Mono | bind(TransportConfig
the transport configuration config, ChannelInitializer<Channel> the channelInitializer, SocketAddress ChannelInitializer that will be used for initializing the channel pipelinethe local address bindAddress, boolean true if domain socket is needed, false otherwise isDomainSocket)Binds a |
| public static Mono | connect(TransportConfig
the transport configuration config, SocketAddress the remoteAddress, AddressResolverGroup<?> SocketAddress to connect tothe resolver which will resolve the address of the unresolved named address resolverGroup, ChannelInitializer<Channel> the channelInitializer)ChannelInitializer that will be used for initializing the channel pipelineConnect a |
| public static Mono | connect(TransportConfig
the transport configuration config, SocketAddress the remoteAddress, AddressResolverGroup<?> SocketAddress to connect tothe resolver which will resolve the address of the unresolved named address resolverGroup, ChannelInitializer<Channel> the channelInitializer, ContextView ChannelInitializer that will be used for initializing the channel pipelinethe current contextView)ContextViewConnect a |
| public static Mono | connect(TransportConfig
the transport configuration config, SocketAddress the remoteAddress, AddressResolverGroup<?> SocketAddress to connect tothe resolver which will resolve the address of the unresolved named address resolverGroup, ChannelInitializer<Channel> the channelInitializer, EventLoop ChannelInitializer that will be used for initializing the channel pipelinethe eventLoop)EventLoop to use for handling the channel.Connect a |
| public static Mono | connect(TransportConfig
the transport configuration config, SocketAddress the remoteAddress, AddressResolverGroup<?> SocketAddress to connect tothe resolver which will resolve the address of the unresolved named address resolverGroup, ChannelInitializer<Channel> the channelInitializer, EventLoop ChannelInitializer that will be used for initializing the channel pipelinethe eventLoop, ContextView EventLoop to use for handling the channel.the current contextView)ContextViewConnect a |
| pack-priv static void | doConnect(List<SocketAddress> addresses, Supplier<? extends SocketAddress> bindAddress, TransportConnector.
|
| pack-priv static Mono | doInitAndRegister(TransportConfig config, ChannelInitializer<Channel> channelInitializer, boolean isDomainSocket, EventLoop eventLoop)
|
| pack-priv static Mono | doResolveAndConnect(Channel channel, TransportConfig config, SocketAddress remoteAddress, AddressResolverGroup<?> resolverGroup, ContextView contextView)
|
| pack-priv static void | setAttributes(Channel
the channel channel, Map<AttributeKey<?>, ?> the attributes attrs)Set the channel attributes |
| pack-priv static void | setChannelOptions(Channel
the channel channel, Map<ChannelOption<?>, ?> the options options, boolean isDomainSocket)Set the channel options |