Home / Type/ ChannelPromise Type — netty Architecture

ChannelPromise Type — netty Architecture

Architecture documentation for the ChannelPromise type/interface in ChannelPromise.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  603cbf66_52cf_5c8e_b572_d87beb08739f["ChannelPromise"]
  1e423d6a_4366_9564_209a_f9384c42c0a9["ChannelPromise.java"]
  603cbf66_52cf_5c8e_b572_d87beb08739f -->|defined in| 1e423d6a_4366_9564_209a_f9384c42c0a9
  style 603cbf66_52cf_5c8e_b572_d87beb08739f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ChannelPromise.java lines 25–68

public interface ChannelPromise extends ChannelFuture, Promise<Void> {

    @Override
    Channel channel();

    @Override
    ChannelPromise setSuccess(Void result);

    ChannelPromise setSuccess();

    boolean trySuccess();

    @Override
    ChannelPromise setFailure(Throwable cause);

    @Override
    ChannelPromise addListener(GenericFutureListener<? extends Future<? super Void>> listener);

    @Override
    ChannelPromise addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners);

    @Override
    ChannelPromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener);

    @Override
    ChannelPromise removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners);

    @Override
    ChannelPromise sync() throws InterruptedException;

    @Override
    ChannelPromise syncUninterruptibly();

    @Override
    ChannelPromise await() throws InterruptedException;

    @Override
    ChannelPromise awaitUninterruptibly();

    /**
     * Returns a new {@link ChannelPromise} if {@link #isVoid()} returns {@code true} otherwise itself.
     */
    ChannelPromise unvoid();
}

Frequently Asked Questions

What is the ChannelPromise type?
ChannelPromise is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelPromise.java.
Where is ChannelPromise defined?
ChannelPromise is defined in transport/src/main/java/io/netty/channel/ChannelPromise.java at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free