equip.data
Class DataCallbackPostImpl
java.lang.Object
equip.runtime.Object
equip.runtime.ValueBase
equip.data.DataCallback
equip.data.DataCallbackPost
equip.data.DataCallbackPostImpl
- All Implemented Interfaces:
- java.lang.Cloneable
- public class DataCallbackPostImpl
- extends DataCallbackPost
Default (do-nothing) implementation of IDL'd abstract class
(interface) DataCallbackPost; you should sub-class DataCallback or DataCallbackPost directly.
|
Method Summary |
void |
notify(Event event,
EventPattern pattern,
boolean patternDeleted,
DataSession session,
ValueBase closure)
notification of a matched event or pseudo event.
|
void |
notifyPost(Event event,
EventPattern pattern,
boolean patternDeleted,
DataSession session,
DataProxy dataspace,
ItemData oldValue,
ItemBinding oldBinding,
ValueBase closure)
notification of a matched event or pseudo event.
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataCallbackPostImpl
public DataCallbackPostImpl()
notifyPost
public void notifyPost(Event event,
EventPattern pattern,
boolean patternDeleted,
DataSession session,
DataProxy dataspace,
ItemData oldValue,
ItemBinding oldBinding,
ValueBase closure)
- Description copied from class:
DataCallbackPost
- notification of a matched event or pseudo event.
As with
DataCallback, you pass your own DataCallbackPost subclass as an argument to DataProxy.createSession(equip.data.DataCallback, equip.runtime.ValueBase) when creating a new DataSession.
Note that post callbacks may be received AFTER a
session or pattern has been deleted (if and only if this is
done in a notify callback on the same event).
NOTE: this class is not currently (2003-10-16) supported in the C++
version.
- Specified by:
notifyPost in class DataCallbackPost
- Parameters:
event - The matched event being enacted by the dataspace.pattern - The pattern that was matched.patternDeleted - Whether the pattern has been deleted
as a result of the event, e.g. matched.session - The DataSession generating this callback.dataspace - The local dataspace generating this callback.oldValue - (for update and delete only) the old value
of the data item (before this event was enacted)oldBinding - (for update and delete only) the old value
of the item binding (before this event was enacted)closure - As provided when the DataSession was
created.
notify
public void notify(Event event,
EventPattern pattern,
boolean patternDeleted,
DataSession session,
ValueBase closure)
- Description copied from class:
DataCallback
- notification of a matched event or pseudo event.
Note, should really have more info here, e.g. dataspace.
- Specified by:
notify in class DataCallback
- Parameters:
event - The matched event being enacted by the dataspace.pattern - The pattern that was matched.patternDeleted - Whether the pattern has been deleted
as a result of the event, e.g. matched.session - The DataSession generating this callback.closure - As provided when the DataSession was
created.