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

org.zodiac.sdk.simplenetty.concurrent.Future 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.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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy