multiverse.server.plugins
Class ProxyPlugin.MessageCallback

java.lang.Object
  extended by multiverse.server.plugins.ProxyPlugin.MessageCallback
All Implemented Interfaces:
SQCallback
Enclosing class:
ProxyPlugin

 class ProxyPlugin.MessageCallback
extends Object
implements SQCallback

This is the SquareQueue callback for the proxy; when the SquareQueue has a message that should be processed, because all messages for the same player have already been processed, it calls the doWork method.


Field Summary
protected  ProxyPlugin proxyPlugin
           
 
Constructor Summary
ProxyPlugin.MessageCallback(ProxyPlugin proxyPlugin)
           
 
Method Summary
 void doWork(Object value, Object key)
          doWork "executes" the message, which originated in some other plugin, on behalf the player by running any message hooks for the message's MessageType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxyPlugin

protected ProxyPlugin proxyPlugin
Constructor Detail

ProxyPlugin.MessageCallback

public ProxyPlugin.MessageCallback(ProxyPlugin proxyPlugin)
Method Detail

doWork

public void doWork(Object value,
                   Object key)
doWork "executes" the message, which originated in some other plugin, on behalf the player by running any message hooks for the message's MessageType. It also maintains the time histograms of message time-in-queue, and the time running the hooks on the message.

Specified by:
doWork in interface SQCallback
Parameters:
value - Actually a subtype of Message; represents the recently-dequeued message.
key - A Player instance.