FailedChannelFuture Class — netty Architecture
Architecture documentation for the FailedChannelFuture class in FailedChannelFuture.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 45a622b0_0718_0d30_92bf_685296808331["FailedChannelFuture"] b31c3166_70f0_9d94_50cc_fd9827cca372["FailedChannelFuture.java"] 45a622b0_0718_0d30_92bf_685296808331 -->|defined in| b31c3166_70f0_9d94_50cc_fd9827cca372 4507ed12_6f47_aa48_01ce_0e73a606ea55["FailedChannelFuture()"] 45a622b0_0718_0d30_92bf_685296808331 -->|method| 4507ed12_6f47_aa48_01ce_0e73a606ea55 3814daab_f4ed_8b99_1ad3_469588e4a052["Throwable()"] 45a622b0_0718_0d30_92bf_685296808331 -->|method| 3814daab_f4ed_8b99_1ad3_469588e4a052 b7958bd4_9745_1161_7fc3_f34987c7682c["isSuccess()"] 45a622b0_0718_0d30_92bf_685296808331 -->|method| b7958bd4_9745_1161_7fc3_f34987c7682c 89164c36_ecfb_c0c9_9d48_c623cda5e394["ChannelFuture()"] 45a622b0_0718_0d30_92bf_685296808331 -->|method| 89164c36_ecfb_c0c9_9d48_c623cda5e394
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/FailedChannelFuture.java lines 27–63
final class FailedChannelFuture extends CompleteChannelFuture {
private final Throwable cause;
/**
* Creates a new instance.
*
* @param channel the {@link Channel} associated with this future
* @param cause the cause of failure
*/
FailedChannelFuture(Channel channel, EventExecutor executor, Throwable cause) {
super(channel, executor);
this.cause = ObjectUtil.checkNotNull(cause, "cause");
}
@Override
public Throwable cause() {
return cause;
}
@Override
public boolean isSuccess() {
return false;
}
@Override
public ChannelFuture sync() {
PlatformDependent.throwException(cause);
return this;
}
@Override
public ChannelFuture syncUninterruptibly() {
PlatformDependent.throwException(cause);
return this;
}
}
Source
Frequently Asked Questions
What is the FailedChannelFuture class?
FailedChannelFuture is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/FailedChannelFuture.java.
Where is FailedChannelFuture defined?
FailedChannelFuture is defined in transport/src/main/java/io/netty/channel/FailedChannelFuture.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free