multiverse.server.plugins
Class ProxyPlugin.MessageCallback
java.lang.Object
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.
|
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 |
proxyPlugin
protected ProxyPlugin proxyPlugin
ProxyPlugin.MessageCallback
public ProxyPlugin.MessageCallback(ProxyPlugin proxyPlugin)
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.