vishnu.transport.remoting
Class RemoteFutureAdapter<V>
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
vishnu.transport.remoting.RemoteFutureAdapter<V>
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteFuture<V>
public class RemoteFutureAdapter<V>
- extends java.rmi.server.UnicastRemoteObject
- implements RemoteFuture<V>
- See Also:
- Serialized Form
-
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
boolean |
cancel(boolean mayInterruptIfRunning)
|
V |
get()
|
V |
get(long timeout,
java.util.concurrent.TimeUnit unit)
|
boolean |
isCancelled()
|
boolean |
isDone()
|
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RemoteFutureAdapter
public RemoteFutureAdapter(java.util.concurrent.Future<V> f)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
cancel
public boolean cancel(boolean mayInterruptIfRunning)
throws java.rmi.RemoteException
- Specified by:
cancel
in interface RemoteFuture<V>
- Throws:
java.rmi.RemoteException
isCancelled
public boolean isCancelled()
throws java.rmi.RemoteException
- Specified by:
isCancelled
in interface RemoteFuture<V>
- Throws:
java.rmi.RemoteException
isDone
public boolean isDone()
throws java.rmi.RemoteException
- Specified by:
isDone
in interface RemoteFuture<V>
- Throws:
java.rmi.RemoteException
get
public V get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.rmi.RemoteException
- Specified by:
get
in interface RemoteFuture<V>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.rmi.RemoteException
get
public V get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException,
java.rmi.RemoteException
- Specified by:
get
in interface RemoteFuture<V>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
java.rmi.RemoteException