FailedFuture Class — netty Architecture
Architecture documentation for the FailedFuture class in FailedFuture.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 388af578_753b_0fc3_fa0e_0b65893324ce["FailedFuture"] 5fff5812_4fb6_35cf_45ff_def2570f27d3["FailedFuture.java"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|defined in| 5fff5812_4fb6_35cf_45ff_def2570f27d3 35c6a43b_74a2_e8c0_b1ae_7ce06e4fb3a0["FailedFuture()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| 35c6a43b_74a2_e8c0_b1ae_7ce06e4fb3a0 5dd94788_3968_5a21_60ee_86c4b1469ba0["Throwable()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| 5dd94788_3968_5a21_60ee_86c4b1469ba0 40ecf74b_8364_b4b7_b11c_0fcf54641d32["isSuccess()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| 40ecf74b_8364_b4b7_b11c_0fcf54641d32 0896c54c_1125_2441_316e_1d73a3021f2b["sync()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| 0896c54c_1125_2441_316e_1d73a3021f2b 05a35f67_1faf_e019_9321_37a1a2be878f["syncUninterruptibly()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| 05a35f67_1faf_e019_9321_37a1a2be878f f250ce62_2125_b9d3_44bf_6c0e327aaace["V()"] 388af578_753b_0fc3_fa0e_0b65893324ce -->|method| f250ce62_2125_b9d3_44bf_6c0e327aaace
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/FailedFuture.java lines 26–67
public final class FailedFuture<V> extends CompleteFuture<V> {
private final Throwable cause;
/**
* Creates a new instance.
*
* @param executor the {@link EventExecutor} associated with this future
* @param cause the cause of failure
*/
public FailedFuture(EventExecutor executor, Throwable cause) {
super(executor);
this.cause = ObjectUtil.checkNotNull(cause, "cause");
}
@Override
public Throwable cause() {
return cause;
}
@Override
public boolean isSuccess() {
return false;
}
@Override
public Future<V> sync() {
PlatformDependent.throwException(cause);
return this;
}
@Override
public Future<V> syncUninterruptibly() {
PlatformDependent.throwException(cause);
return this;
}
@Override
public V getNow() {
return null;
}
}
Source
Frequently Asked Questions
What is the FailedFuture class?
FailedFuture is a class in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/FailedFuture.java.
Where is FailedFuture defined?
FailedFuture is defined in common/src/main/java/io/netty/util/concurrent/FailedFuture.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free