org.zodiac.sdk.simplenetty.concurrent.ChannelPromise Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
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);
}