Interface ItemEvent


@Deprecated public interface ItemEvent
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 a base interface for creating Item Events in order to send updates to Lightstreamer Kernel. An ItemEvent object contains the new values and, in some cases, the current values of the Fields of an Item. All implementation methods should be nonblocking.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns an Iterator to browse the names of the supplied Fields, expressed as String.
    Deprecated.
    Returns the value of a named Field (null is a legal value too).
  • Method Details

    • getNames

      @Nonnull Iterator<String> getNames()
      Deprecated.
      Returns an Iterator to browse the names of the supplied Fields, expressed as String.
      Returns:
      an Iterator to browse the names of the supplied Fields.
    • getValue

      @Nullable Object getValue(@Nonnull String name)
      Deprecated.
      Returns the value of a named Field (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. The Remote Server, will call this method only once for each Field.
      Parameters:
      name - A Field name.
      Returns:
      A String containing the Field value, or null. A byte array is also accepted, but deprecated.