com.caucho.amp.actor
Class AmpQueryFuture

java.lang.Object
  extended by 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.


Constructor Summary
AmpQueryFuture(long timeout)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmpQueryFuture

public AmpQueryFuture(long timeout)
Method Detail

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