public interface IAsyncResult<T> extends IMessageCallback
Modifier and Type | Method and Description |
---|---|
T |
get(long timeout,
java.util.concurrent.TimeUnit tu)
Same operation as the above get() but allows the calling
thread to specify a timeout.
|
java.net.InetAddress |
getFrom() |
void |
result(MessageIn<T> result)
Store the result obtained for the submitted task.
|
isLatencyForSnitch
T get(long timeout, java.util.concurrent.TimeUnit tu) throws java.util.concurrent.TimeoutException
timeout
- the maximum time to waittu
- the time unit of the timeout argumentjava.util.concurrent.TimeoutException
void result(MessageIn<T> result)
result
- the response messagejava.net.InetAddress getFrom()
Copyright © 2013 The Apache Software Foundation