org.zodiac.sdk.simplenetty.concurrent.ChannelFuture 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 ChannelFuture extends Future {
Channel channel();
@Override
ChannelFuture addListener(Listener listener, int op);
@Override
ChannelFuture addListeners(Map, Integer> listeners);
@Override
ChannelFuture removeListener(Listener listener);
@Override
ChannelFuture removeListeners(List> listeners);
@Override
ChannelFuture sync() throws InterruptedException;
@Override
ChannelFuture syncUninterruptibly();
@Override
ChannelFuture await() throws InterruptedException;
@Override
ChannelFuture awaitUninterruptibly();
@Override
boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException;
@Override
boolean awaitUninterruptibly(long timeout, TimeUnit timeUnit);
}