ChannelOutboundInvoker Type — netty Architecture
Architecture documentation for the ChannelOutboundInvoker type/interface in ChannelOutboundInvoker.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3dfcbb6f_895f_ddd2_6761_b89a00d8bdc1["ChannelOutboundInvoker"] 90e8a0b8_1731_87e3_c02d_830a41447bdd["ChannelOutboundInvoker.java"] 3dfcbb6f_895f_ddd2_6761_b89a00d8bdc1 -->|defined in| 90e8a0b8_1731_87e3_c02d_830a41447bdd style 3dfcbb6f_895f_ddd2_6761_b89a00d8bdc1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelOutboundInvoker.java lines 24–287
public interface ChannelOutboundInvoker {
/**
* Request to bind to the given {@link SocketAddress} and notify the {@link ChannelFuture} once the operation
* completes, either because the operation was successful or because of an error.
* <p>
* This will result in having the
* {@link ChannelOutboundHandler#bind(ChannelHandlerContext, SocketAddress, ChannelPromise)} method
* called of the next {@link ChannelOutboundHandler} contained in the {@link ChannelPipeline} of the
* {@link Channel}.
*/
default ChannelFuture bind(SocketAddress localAddress) {
return bind(localAddress, newPromise());
}
/**
* Request to connect to the given {@link SocketAddress} and notify the {@link ChannelFuture} once the operation
* completes, either because the operation was successful or because of an error.
* <p>
* If the connection fails because of a connection timeout, the {@link ChannelFuture} will get failed with
* a {@link ConnectTimeoutException}. If it fails because of connection refused a {@link ConnectException}
* will be used.
* <p>
* This will result in having the
* {@link ChannelOutboundHandler#connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)}
* method called of the next {@link ChannelOutboundHandler} contained in the {@link ChannelPipeline} of the
* {@link Channel}.
*/
default ChannelFuture connect(SocketAddress remoteAddress) {
return connect(remoteAddress, newPromise());
}
/**
* Request to connect to the given {@link SocketAddress} while bind to the localAddress and notify the
* {@link ChannelFuture} once the operation completes, either because the operation was successful or because of
* an error.
* <p>
* This will result in having the
* {@link ChannelOutboundHandler#connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)}
* method called of the next {@link ChannelOutboundHandler} contained in the {@link ChannelPipeline} of the
* {@link Channel}.
*/
default ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress) {
return connect(remoteAddress, localAddress, newPromise());
}
/**
* Request to disconnect from the remote peer and notify the {@link ChannelFuture} once the operation completes,
* either because the operation was successful or because of an error.
* <p>
* This will result in having the
* {@link ChannelOutboundHandler#disconnect(ChannelHandlerContext, ChannelPromise)}
* method called of the next {@link ChannelOutboundHandler} contained in the {@link ChannelPipeline} of the
* {@link Channel}.
*/
default ChannelFuture disconnect() {
return disconnect(newPromise());
}
/**
* Request to close the {@link Channel} and notify the {@link ChannelFuture} once the operation completes,
* either because the operation was successful or because of
* an error.
*
* After it is closed it is not possible to reuse it again.
* <p>
* This will result in having the
* {@link ChannelOutboundHandler#close(ChannelHandlerContext, ChannelPromise)}
* method called of the next {@link ChannelOutboundHandler} contained in the {@link ChannelPipeline} of the
* {@link Channel}.
*/
default ChannelFuture close() {
return close(newPromise());
}
/**
* Request to deregister from the previous assigned {@link EventExecutor} and notify the
* {@link ChannelFuture} once the operation completes, either because the operation was successful or because of
* an error.
* <p>
* This will result in having the
Source
Frequently Asked Questions
What is the ChannelOutboundInvoker type?
ChannelOutboundInvoker is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelOutboundInvoker.java.
Where is ChannelOutboundInvoker defined?
ChannelOutboundInvoker is defined in transport/src/main/java/io/netty/channel/ChannelOutboundInvoker.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free