net.spy.memcached.internal
Class GetFuture<T>
java.lang.Object
  
net.spy.memcached.internal.GetFuture<T>
- Type Parameters:
 T - Type of object returned from the get
- All Implemented Interfaces: 
 - Future<T>
 
public class GetFuture<T>
- extends Object
- implements Future<T>
  
Future returned for GET operations.
 Not intended for general use.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GetFuture
public GetFuture(CountDownLatch l,
                 long opTimeout)
cancel
public boolean cancel(boolean ign)
- Specified by:
 cancel 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 duration,
             TimeUnit units)
      throws InterruptedException,
             TimeoutException,
             ExecutionException
- Specified by:
 get in interface Future<T>
 
- Throws:
 InterruptedException
TimeoutException
ExecutionException
 
set
public void set(Future<T> d)
 
 
setOperation
public void setOperation(Operation to)
 
 
isCancelled
public boolean isCancelled()
- Specified by:
 isCancelled in interface Future<T>
 
 
isDone
public boolean isDone()
- Specified by:
 isDone in interface Future<T>