public interface ItemEventListener
Modifier and Type | Method and Description |
---|---|
void |
clearSnapshot(java.lang.String itemName)
Called by a Data Adapter to signal to Lightstreamer Kernel that the
current Snapshot of the Item has suddenly become empty.
|
void |
endOfSnapshot(java.lang.String itemName)
Called by a Data Adapter to signal to Lightstreamer Kernel that no more Item Event belonging to the
Snapshot are expected for an Item.
|
void |
failure(java.lang.Exception exception)
Called by a Data Adapter to notify Lightstreamer Kernel of the occurrence of a severe problem that
can compromise future operation of the Data Adapter.
|
void |
update(java.lang.String itemName,
IndexedItemEvent itemEvent,
boolean isSnapshot)
Called by a Data Adapter to send an Item Event to Lightstreamer Kernel when the Item Event is
implemented as an IndexedItemEvent instance.
|
void |
update(java.lang.String itemName,
ItemEvent itemEvent,
boolean isSnapshot)
Called by a Data Adapter to send an Item Event to Lightstreamer Kernel when the Item Event is
implemented as an ItemEvent instance.
|
void |
update(java.lang.String itemName,
java.util.Map<java.lang.String,?> itemEvent,
boolean isSnapshot)
Called by a Data Adapter to send an Item Event to Lightstreamer Kernel when the Item Event is
implemented as a Map<String,?> instance.
|
void update(java.lang.String itemName, ItemEvent itemEvent, boolean isSnapshot)
itemName
- The name of the Item whose values are carried by the Item Event.itemEvent
- An ItemEvent instance.isSnapshot
- true if the Item Event carries the Item Snapshot.void update(java.lang.String itemName, java.util.Map<java.lang.String,?> itemEvent, boolean isSnapshot)
itemName
- The name of the Item whose values are carried by the Item Event.itemEvent
- A Map instance, in which Field names are associated to Field values.
A value can be expressed as either a String or a byte array, the latter case being the most efficient,
though restricted to the ISO-8859-1 (ISO-LATIN-1) character set. A Field value can be null or missing
if the Field is not to be reported in the event.isSnapshot
- true if the Item Event carries the Item Snapshot.void update(java.lang.String itemName, IndexedItemEvent itemEvent, boolean isSnapshot)
itemName
- The name of the Item whose values are carried by the Item Event.itemEvent
- An IndexedItemEvent instance.isSnapshot
- true if the Item Event carries the Item Snapshot.void endOfSnapshot(java.lang.String itemName)
itemName
- The name of the Item whose snapshot has been completed.void clearSnapshot(java.lang.String itemName)
itemName
- The name of the Item whose Snapshot has become empty.void failure(java.lang.Exception exception)
exception
- Any Excetion object, with the description of the problem.