Atavism Version 2018.1AGIS API

atavism.server.events
Class DirectedEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by 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


Constructor Summary
DirectedEvent()
           
DirectedEvent(java.util.Collection<AOObject> recipients, Event event)
           
 
Method Summary
 Event getContainedEvent()
           
 java.lang.String getMessage()
           
 java.lang.String getName()
           
 java.util.Collection<AOObject> getRecipients()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setContainedEvent(Event e)
           
 void setMessage(java.lang.String msg)
           
 void setRecipients(java.util.Collection<AOObject> c)
           
 AOByteBuffer toBytes()
           
 
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
 

Constructor Detail

DirectedEvent

public DirectedEvent()

DirectedEvent

public DirectedEvent(java.util.Collection<AOObject> recipients,
                     Event event)
Method Detail

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()


Copyright © 2018 Dragonsan Studios Sp. z o.o.