com.threerings.presents.dobj
Class ServerMessageEvent

java.lang.Object
  extended by com.threerings.presents.dobj.DEvent
      extended by com.threerings.presents.dobj.NamedEvent
          extended by com.threerings.presents.dobj.MessageEvent
              extended by com.threerings.presents.dobj.ServerMessageEvent
All Implemented Interfaces:
Streamable

public class ServerMessageEvent
extends MessageEvent

A message event that only goes to the server. If generated on the server then it never leaves the server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class com.threerings.presents.dobj.MessageEvent
_args
 
Fields inherited from class com.threerings.presents.dobj.NamedEvent
_name
 
Fields inherited from class com.threerings.presents.dobj.DEvent
_actualTransport, _soid, _toid, _transport, eventId, UNSET_OLD_ENTRY, UNSET_OLD_VALUE
 
Constructor Summary
ServerMessageEvent(int targetOid, String name, Object[] args)
          Constructs a new message event on the specified target object with the supplied name and arguments.
 
Method Summary
 boolean isPrivate()
          Some events are used only internally on the server and need not be broadcast to subscribers, proxy or otherwise.
 
Methods inherited from class com.threerings.presents.dobj.MessageEvent
applyToObject, getArgs, notifyListener, setArgs, toString
 
Methods inherited from class com.threerings.presents.dobj.NamedEvent
getName
 
Methods inherited from class com.threerings.presents.dobj.DEvent
alreadyApplied, getActualTransport, getSourceOid, getTargetOid, getTransport, noteActualTransport, setSourceOid, setTargetOid, setTransport, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerMessageEvent

public ServerMessageEvent(int targetOid,
                          String name,
                          Object[] args)
Constructs a new message event on the specified target object with the supplied name and arguments.

Parameters:
targetOid - the object id of the object whose attribute has changed.
name - the name of the message event.
args - the arguments for this message. This array should contain only values of valid distributed object types.
Method Detail

isPrivate

public boolean isPrivate()
Description copied from class: DEvent
Some events are used only internally on the server and need not be broadcast to subscribers, proxy or otherwise. Such events can return true here and short-circuit the normal proxy event dispatch mechanism.

Overrides:
isPrivate in class DEvent