public class AsyncOneResponse<T> extends java.lang.Object implements IAsyncCallback<T>
isAlive
Constructor and Description |
---|
AsyncOneResponse() |
Modifier and Type | Method and Description |
---|---|
T |
get(long timeout,
java.util.concurrent.TimeUnit tu) |
boolean |
isLatencyForSnitch() |
void |
response(MessageIn<T> response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsBackPressure
public T get(long timeout, java.util.concurrent.TimeUnit tu) throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
public void response(MessageIn<T> response)
response
in interface IAsyncCallback<T>
response
- response received.public boolean isLatencyForSnitch()
isLatencyForSnitch
in interface IAsyncCallback<T>
Copyright © 2017 The Apache Software Foundation