public final class AmpQueryFuture extends java.lang.Object implements AmpQueryCallback
Constructor and Description |
---|
AmpQueryFuture(long timeout) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get() |
AmpError |
getError() |
java.lang.Object |
getResult() |
void |
onQueryError(AmpActorRef to,
AmpActorRef from,
AmpError error) |
void |
onQueryResult(AmpActorRef to,
AmpActorRef from,
java.lang.Object result) |
java.lang.String |
toString() |
public final java.lang.Object getResult()
public final AmpError getError()
public final java.lang.Object get() throws TimeoutException
TimeoutException
public void onQueryResult(AmpActorRef to, AmpActorRef from, java.lang.Object result)
onQueryResult
in interface AmpQueryCallback
public void onQueryError(AmpActorRef to, AmpActorRef from, AmpError error)
onQueryError
in interface AmpQueryCallback
public java.lang.String toString()
toString
in class java.lang.Object