GigaSpaces - Open Spaces

org.openspaces.core.transaction.internal
Class InternalAsyncFuture<T>

java.lang.Object
  extended by org.openspaces.core.transaction.internal.InternalAsyncFuture<T>
All Implemented Interfaces:
com.gigaspaces.async.AsyncFuture<T>, Future<T>

public class InternalAsyncFuture<T>
extends Object
implements com.gigaspaces.async.AsyncFuture<T>

Author:
kimchy

Constructor Summary
InternalAsyncFuture(com.gigaspaces.async.AsyncFuture<T> future, GigaSpace gigaSpace)
           
InternalAsyncFuture(com.gigaspaces.async.AsyncFuture<T> future, GigaSpace gigaSpace, net.jini.core.transaction.Transaction tx)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 T get()
           
 T get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 void setListener(com.gigaspaces.async.AsyncFutureListener<T> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalAsyncFuture

public InternalAsyncFuture(com.gigaspaces.async.AsyncFuture<T> future,
                           GigaSpace gigaSpace)

InternalAsyncFuture

public InternalAsyncFuture(com.gigaspaces.async.AsyncFuture<T> future,
                           GigaSpace gigaSpace,
                           net.jini.core.transaction.Transaction tx)
Method Detail

setListener

public void setListener(com.gigaspaces.async.AsyncFutureListener<T> listener)
Specified by:
setListener in interface com.gigaspaces.async.AsyncFuture<T>

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<T>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<T>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<T>

get

public T get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException

get

public T get(long timeout,
             TimeUnit unit)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException
TimeoutException

GigaSpaces - Open Spaces

Copyright © GigaSpaces.