atavism.server.events
Class DirectedEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.DirectedEvent
- All Implemented Interfaces:
- EventParser
public class DirectedEvent
- extends Event
use this event when you want to send a particular event to multiple
recipients on a single connection. this is used when the world
server is sending a message to the entity manager. there is only
one shared connection but the message is supposed to go to a set of
entities
Methods inherited from class atavism.server.engine.Event |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DirectedEvent
public DirectedEvent()
DirectedEvent
public DirectedEvent(java.util.Collection<AOObject> recipients,
Event event)
getName
public java.lang.String getName()
- Specified by:
getName
in class Event
setContainedEvent
public void setContainedEvent(Event e)
getContainedEvent
public Event getContainedEvent()
setRecipients
public void setRecipients(java.util.Collection<AOObject> c)
getRecipients
public java.util.Collection<AOObject> getRecipients()
toBytes
public AOByteBuffer toBytes()
- Specified by:
toBytes
in class Event
parseBytes
public void parseBytes(AOByteBuffer buf)
- Description copied from class:
Event
- load this event from the passed in buffer
called by the constructor
- Specified by:
parseBytes
in interface EventParser
- Specified by:
parseBytes
in class Event
setMessage
public void setMessage(java.lang.String msg)
getMessage
public java.lang.String getMessage()