com.bigdata.service.proxy
Class RemoteFutureImpl<T>
java.lang.Object
com.bigdata.service.proxy.RemoteFutureImpl<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- RemoteFuture<T>, Remote
public class RemoteFutureImpl<T>
- extends Object
- implements RemoteFuture<T>
A helper object that provides the API of Future but whose methods
throw IOException and are therefore compatible with
Remote and Exporter.
- Version:
- $Id: RemoteFutureImpl.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteFutureImpl
public RemoteFutureImpl(Future<T> future)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
throws IOException
- Specified by:
cancel in interface RemoteFuture<T>
- Throws:
IOException
get
public T get()
throws InterruptedException,
ExecutionException,
IOException
- Specified by:
get in interface RemoteFuture<T>
- Throws:
InterruptedException
ExecutionException
IOException
get
public T get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException,
IOException
- Specified by:
get in interface RemoteFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
IOException
isCancelled
public boolean isCancelled()
throws IOException
- Specified by:
isCancelled in interface RemoteFuture<T>
- Throws:
IOException
isDone
public boolean isDone()
throws IOException
- Specified by:
isDone in interface RemoteFuture<T>
- Throws:
IOException
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.