com.caucho.bam.actor
Class BamSkeleton<S>

java.lang.Object
  extended by com.caucho.bam.actor.BamSkeleton<S>

public class BamSkeleton<S>
extends java.lang.Object

The Skeleton introspects and dispatches messages for a SimpleActor or SkeletonActorFilter.


Method Summary
static
<T> BamSkeleton<T>
getSkeleton(java.lang.Class<T> cl)
           
protected  void introspect(java.lang.Class<?> cl)
           
 void message(S actor, MessageStream fallback, java.lang.String to, java.lang.String from, java.io.Serializable payload)
          Dispatches a message to the actorStream.
 void messageError(S actor, MessageStream fallback, java.lang.String to, java.lang.String from, java.io.Serializable payload, BamError error)
           
 void query(S actor, MessageStream fallback, Broker broker, long id, java.lang.String to, java.lang.String from, java.io.Serializable payload)
           
 void queryError(S actor, MessageStream fallback, long id, java.lang.String to, java.lang.String from, java.io.Serializable payload, BamError error)
           
 void queryResult(S actor, MessageStream fallback, long id, java.lang.String to, java.lang.String from, java.io.Serializable payload)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSkeleton

public static <T> BamSkeleton<T> getSkeleton(java.lang.Class<T> cl)

message

public void message(S actor,
                    MessageStream fallback,
                    java.lang.String to,
                    java.lang.String from,
                    java.io.Serializable payload)
Dispatches a message to the actorStream.


messageError

public void messageError(S actor,
                         MessageStream fallback,
                         java.lang.String to,
                         java.lang.String from,
                         java.io.Serializable payload,
                         BamError error)

query

public void query(S actor,
                  MessageStream fallback,
                  Broker broker,
                  long id,
                  java.lang.String to,
                  java.lang.String from,
                  java.io.Serializable payload)

queryResult

public void queryResult(S actor,
                        MessageStream fallback,
                        long id,
                        java.lang.String to,
                        java.lang.String from,
                        java.io.Serializable payload)

queryError

public void queryError(S actor,
                       MessageStream fallback,
                       long id,
                       java.lang.String to,
                       java.lang.String from,
                       java.io.Serializable payload,
                       BamError error)

introspect

protected void introspect(java.lang.Class<?> cl)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object