Interface IndexedItemEvent


@Deprecated public interface IndexedItemEvent
Deprecated.
The class is deprecated. Use a Map and ItemEventListener.update(String, java.util.Map, boolean) to supply field values.
Provides to the Data Adapter an alternative interface for creating Item Events in order to send updates to Lightstreamer Kernel. In this event, a name-index association is defined for all fields. These indexes will be used by the Remote Server 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Returns the index of a named Field.
    int
    Deprecated.
    Returns the maximum index for the fields in the event.
    getName(int index)
    Deprecated.
    Returns the name of a Field whose index is supplied.
    getValue(int index)
    Deprecated.
    Returns the value of a field whose index is supplied (null is a legal value too).
  • Method Details

    • getMaximumIndex

      int getMaximumIndex()
      Deprecated.
      Returns the maximum index for the fields in the event. The event cannot be empty, so the maximum Index must always exist.
      Returns:
      A 0-based index.
    • getIndex

      int getIndex(@Nonnull String name)
      Deprecated.
      Returns the index of a named Field. Returns -1 if such a field is not reported in this event. So, the implementation must be very fast.
      Parameters:
      name - A Field name.
      Returns:
      A 0-based index for the field or -1. The index must not be greater than the maximum index returned by getMaximumIndex().
    • getName

      @Nullable String getName(int index)
      Deprecated.
      Returns the name of a Field whose index is supplied. Returns null if the Field is not reported in this event.
      Parameters:
      index - A Field index.
      Returns:
      The name of a Field, or null.
    • getValue

      @Nullable Object getValue(int index)
      Deprecated.
      Returns the value of a field whose index is supplied (null is a legal value too). Returns null if the Field is not reported in the Item Event. The value should be expressed as a String; the use of a byte array, to supply a string encoded in the ISO-8859-1 (ISO-LATIN-1) character set, is also allowed, but it has been deprecated.
      Parameters:
      index - A Field index.
      Returns:
      A String containing the Field value, or null. A byte array is also accepted, but deprecated.