com.threerings.presents.server
Interface PresentsSession.MessageDispatcher

All Known Implementing Classes:
PresentsSession.CompoundDispatcher, PresentsSession.ForwardEventDispatcher, PresentsSession.LogoffDispatcher, PresentsSession.PingDispatcher, PresentsSession.SubscribeDispatcher, PresentsSession.ThrottleUpdatedDispatcher, PresentsSession.TransmitDatagramsDispatcher, PresentsSession.UnsubscribeDispatcher
Enclosing class:
PresentsSession

protected static interface PresentsSession.MessageDispatcher

Message dispatchers are used to dispatch each different type of message. We can look the dispatcher up in a table and invoke it through an overloaded member which is faster (so we think) than doing a bunch of instanceofs.


Method Summary
 void dispatch(PresentsSession client, Message mge)
          Dispatch the supplied message for the specified client.
 

Method Detail

dispatch

void dispatch(PresentsSession client,
              Message mge)
Dispatch the supplied message for the specified client.