|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IndexedItemEvent
Provides to the Data Adapter an alternative interface for creating
ItemEvents in order to send updates to Lightstreamer Kernel.
In this event, a name-index association is defined for all fields.
These indexes will also be used to iterate through all the fields.
Some indexes may not be associated to fields in the event, but the number
of such holes should be small. The name-index associations are local to the
event and may be different even across events belonging to the same Item.
Using this kind of events allows a particularly efficient management of
events that belong to Items requested in RAW, DISTINCT or COMMAND Mode.
All implementation methods must execute fast and must be nonblocking.
All information needed to extract data must be provided at object
construction. If the implementation were slow, the whole update delivery
process, even for different sessions, would be slowed down.
ItemEvent| Method Summary | |
|---|---|
int |
getIndex(java.lang.String name)
Returns the index of a named Field. |
int |
getMaximumIndex()
Returns the maximum index for the fields in the event. |
java.lang.String |
getName(int index)
Returns the name of a Field whose index is supplied. |
java.lang.Object |
getValue(int index)
Returns the value of a field whose index is supplied (null is a legal value too). |
| Method Detail |
|---|
int getMaximumIndex()
int getIndex(java.lang.String name)
name - A Field name.
java.lang.String getName(int index)
index - A Field index.
DataProviderjava.lang.Object getValue(int index)
ItemEvent.getValue(String) for details.
index - A Field index.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||