org.zodiac.sdk.simplenetty.concurrent.Future 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.listener.Listener;
public interface Future extends java.util.concurrent.Future {
boolean isCancellable();
boolean isSuccess();
boolean isFail();
Future addListener(Listener listener, int op);
Future addListeners(Map, Integer> listeners);
Future removeListener(Listener listener);
Future removeListeners(List> listeners);
Throwable cause();
Future sync() throws InterruptedException;
Future syncUninterruptibly();
Future await() throws InterruptedException;
Future awaitUninterruptibly();
boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException;
boolean awaitUninterruptibly(long timeout, TimeUnit timeUnit);
}