net.spy.memcached.internal
Class BulkGetFuture<T>

java.lang.Object
  extended by net.spy.memcached.internal.BulkGetFuture<T>
Type Parameters:
T - types of objects returned from the GET
All Implemented Interfaces:
Future<Map<String,T>>

public class BulkGetFuture<T>
extends Object
implements Future<Map<String,T>>

Future for handling results from bulk gets. Not intended for general use.


Constructor Summary
BulkGetFuture(Map<String,Future<T>> m, Collection<Operation> getOps, CountDownLatch l)
           
 
Method Summary
 boolean cancel(boolean ign)
           
 Map<String,T> get()
           
 Map<String,T> get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkGetFuture

public BulkGetFuture(Map<String,Future<T>> m,
                     Collection<Operation> getOps,
                     CountDownLatch l)
Method Detail

cancel

public boolean cancel(boolean ign)
Specified by:
cancel in interface Future<Map<String,T>>

get

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

get

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

isCancelled

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

isDone

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