All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.sdk.simplenetty.concurrent.ChannelPromise Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.sdk.simplenetty.concurrent;

import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import org.zodiac.sdk.simplenetty.channel.Channel;
import org.zodiac.sdk.simplenetty.listener.Listener;

public interface ChannelPromise extends Promise, ChannelFuture {

    Channel channel();

    @Override
    ChannelPromise success(V result);

    @Override
    ChannelPromise setFail(Throwable throwable);

    @Override
    ChannelPromise addListener(Listener listener, int op);

    @Override
    ChannelPromise addListeners(Map, Integer> listeners);

    @Override
    ChannelPromise removeListener(Listener listener);

    @Override
    ChannelPromise removeListeners(List> listeners);

    @Override
    ChannelPromise sync() throws InterruptedException;

    @Override
    ChannelPromise syncUninterruptibly();

    @Override
    ChannelPromise await() throws InterruptedException;

    @Override
    ChannelPromise awaitUninterruptibly();

    @Override
    boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException;

    @Override
    boolean awaitUninterruptibly(long timeout, TimeUnit timeUnit);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy