com.bigdata.service.proxy.RemoteFuture Maven / Gradle / Ivy
package com.bigdata.service.proxy;
import java.io.IOException;
import java.rmi.Remote;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/**
* {@link Remote} interface declaring the API of {@link Future} but also
* declaring that each methods throws {@link IOException} in order to be
* compatible with {@link Remote} and {@link Exporter}. Of course, this
* means that this interface can not extend {@link Future}!
*
* @author Bryan Thompson
* @version $Id$
*/
public interface RemoteFuture extends Remote {
public boolean cancel(boolean mayInterruptIfRunning) throws IOException;
public T get() throws InterruptedException, ExecutionException, IOException;
public T get(long timeout, TimeUnit unit) throws InterruptedException,
ExecutionException, TimeoutException, IOException;
public boolean isCancelled() throws IOException;
public boolean isDone() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy