org.infinispan.distribution
Class DistAsyncReturnValue
java.lang.Object
org.infinispan.distribution.DistAsyncReturnValue
- All Implemented Interfaces:
- Future<Object>
public class DistAsyncReturnValue
- extends Object
- implements Future<Object>
A version of the async return values for dist
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistAsyncReturnValue
public DistAsyncReturnValue(Future<Object> invalFuture,
Future<Object> replFuture,
Object returnValue)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface Future<Object>
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface Future<Object>
isDone
public boolean isDone()
- Specified by:
isDone
in interface Future<Object>
get
public Object get()
throws InterruptedException,
ExecutionException
- Specified by:
get
in interface Future<Object>
- Throws:
InterruptedException
ExecutionException
get
public Object get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get
in interface Future<Object>
- Throws:
InterruptedException
ExecutionException
TimeoutException
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.