public class MessageEvent extends NamedEvent
Streamable.Closure| Constructor and Description |
|---|
MessageEvent(int targetOid,
String name,
Object[] args)
Constructs a new message event on the specified target object with the supplied name and
arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyToObject(DObject target)
Applies the attribute modifications represented by this event to the specified target
object.
|
Object[] |
getArgs()
Returns the arguments to this message.
|
void |
setArgs(Object[] args)
Replaces the arguments associated with this message event.
|
getNamealreadyApplied, getActualTransport, getSourceOid, getTargetOid, getTransport, isPrivate, noteActualTransport, setSourceOid, setTargetOid, setTransport, toStringpublic MessageEvent(int targetOid,
String name,
Object[] args)
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.public Object[] getArgs()
public void setArgs(Object[] args)
public boolean applyToObject(DObject target) throws ObjectAccessException
DEventapplyToObject in class DEventObjectAccessException - thrown if there is any problem applying the event to the
object (invalid attribute, etc.).Copyright © 2015. All rights reserved.