com.caucho.amp.actor
Class AmpQueryFuture
java.lang.Object
com.caucho.amp.actor.AmpQueryFuture
- All Implemented Interfaces:
- AmpQueryCallback
public final class AmpQueryFuture
- extends java.lang.Object
- implements AmpQueryCallback
Handles the context for an actor, primarily including its
query map.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmpQueryFuture
public AmpQueryFuture(long timeout)
getResult
public final java.lang.Object getResult()
getError
public final AmpError getError()
get
public final java.lang.Object get()
throws TimeoutException
- Throws:
TimeoutException
onQueryResult
public void onQueryResult(AmpActorRef to,
AmpActorRef from,
java.lang.Object result)
- Specified by:
onQueryResult
in interface AmpQueryCallback
onQueryError
public void onQueryError(AmpActorRef to,
AmpActorRef from,
AmpError error)
- Specified by:
onQueryError
in interface AmpQueryCallback
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object