Interface Event

    • Method Detail

      • id

        IgniteUuid id()
        Gets globally unique ID of this event.
        Returns:
        Globally unique ID of this event.
        See Also:
        localOrder()
      • localOrder

        long localOrder()
        Gets locally unique ID that is atomically incremented for each event. Unlike global id() this local ID can be used for ordering events on this node.

        Note that for performance considerations Ignite doesn't order events globally.

        Returns:
        Locally unique ID that is atomically incremented for each new event.
        See Also:
        id()
      • node

        ClusterNode node()
        Node where event occurred and was recorded
        Returns:
        node where event occurred and was recorded.
      • message

        @Nullable
        @Nullable String message()
        Gets optional message for this event.
        Returns:
        Optional (can be null) message for this event.
      • type

        int type()
        Gets type of this event. All system event types are defined in EventType.

        NOTE: all types in range from 1 to 1000 are reserved for internal Ignite events and should not be used by user-defined events.

        Returns:
        Event's type.
        See Also:
        EventType
      • name

        String name()
        Gets name of this event. All events are defined in EventType class.
        Returns:
        Name of this event.
      • timestamp

        long timestamp()
        Gets event timestamp. Timestamp is local to the node on which this event was produced. Note that more than one event can be generated with the same timestamp. For ordering purposes use localOrder() instead.
        Returns:
        Event timestamp.
      • shortDisplay

        String shortDisplay()
        Gets a shortened version of toString() result. Suitable for humans to read.
        Returns:
        Shortened version of toString() result.