V
- public interface BulkFuture<V>
extends java.util.concurrent.Future<V>
This interface is now returned from all asyncGetBulk methods. Unlike
Future.get(long, TimeUnit)
, getSome(long, TimeUnit)
does not throw
CheckedOperationTimeoutException, thus allowing retrieval of partial results
after timeout occurs. This behavior is especially useful in case of large
multi gets.
Modifier and Type | Method and Description |
---|---|
V |
getSome(long timeout,
java.util.concurrent.TimeUnit unit)
Wait for the operation to complete and return results
If operation could not complete within specified timeout, partial result is
returned.
|
OperationStatus |
getStatus()
Gets the status of the operation upon completion.
|
boolean |
isTimeout() |
boolean isTimeout()
V getSome(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Future.get(long, TimeUnit)
timeout
- unit
- java.lang.InterruptedException
java.util.concurrent.ExecutionException
OperationStatus getStatus()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.