|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.net.MultiAsyncResult
public class MultiAsyncResult
Method Summary | |
---|---|
byte[] |
get()
Returns the result for the task that was submitted. |
byte[] |
get(long timeout,
java.util.concurrent.TimeUnit tu)
Same operation as the above get() but allows the calling thread to specify a timeout. |
boolean |
isDone()
This is used to check if the task has been completed |
java.util.List<byte[]> |
multiget()
Returns the result for all tasks that was submitted. |
java.util.List<byte[]> |
multiget(long timeout,
java.util.concurrent.TimeUnit tu)
Same operation as the above get() but allows the calling thread to specify a timeout. |
void |
result(Message result)
Store the result obtained for the submitted task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public byte[] get()
IAsyncResult
get
in interface IAsyncResult
public byte[] get(long timeout, java.util.concurrent.TimeUnit tu) throws java.util.concurrent.TimeoutException
IAsyncResult
get
in interface IAsyncResult
timeout
- the maximum time to waittu
- the time unit of the timeout argument
java.util.concurrent.TimeoutException
public java.util.List<byte[]> multiget()
IAsyncResult
multiget
in interface IAsyncResult
public boolean isDone()
IAsyncResult
isDone
in interface IAsyncResult
public java.util.List<byte[]> multiget(long timeout, java.util.concurrent.TimeUnit tu) throws java.util.concurrent.TimeoutException
IAsyncResult
multiget
in interface IAsyncResult
timeout
- the maximum time to waittu
- the time unit of the timeout argument
java.util.concurrent.TimeoutException
public void result(Message result)
IAsyncResult
result
in interface IAsyncResult
result
- the response message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |