public class ZMQSendTester extends Mod implements ContextMod, ObjectCompletionWatcher, ContextShutdownWatcher
Constructor and Description |
---|
ZMQSendTester(String address)
JSON-driven constructor.
|
Modifier and Type | Method and Description |
---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
void |
log(User from,
String str)
Handle the 'log' verb.
|
void |
noteContextShutdown()
Do whatever you want when the context shuts down.
|
void |
objectIsComplete()
Do what needs to be done now that you are in a finished object
environment.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object
@JSONMethod(value="address") public ZMQSendTester(String address)
public JSONLiteral encode(EncodeControl control)
@JSONMethod(value="str") public void log(User from, String str) throws MessageHandlerException
str
- String to logMessageHandlerException
public void objectIsComplete()
ObjectCompletionWatcher
This method will be called automatically by the server's object creation mechanism upon completion of the creation of an object to which the mod implementing this interface is attached.
Note: if an object has more than one mod that implements this interface, the order in which the various mods' implementations of this method will be called is undefined.
objectIsComplete
in interface ObjectCompletionWatcher
public void noteContextShutdown()
ContextShutdownWatcher
Whenever a context is about to be shutdown, the server will call this
method on all objects that have registered an interest in that context
via the context's registerContextShutdownWatcher()
method.
noteContextShutdown
in interface ContextShutdownWatcher
Copyright © 2017. All rights reserved.