vishnu.transport.remoting
Class RemoteFutureAdapter<V>

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by 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
 

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteFutureAdapter(java.util.concurrent.Future<V> f)
           
 
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
 

Constructor Detail

RemoteFutureAdapter

public RemoteFutureAdapter(java.util.concurrent.Future<V> f)
                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

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