public interface EventTrackerStatusChangeListener
Map of EventTrackerStatus' in the TrackingEventProcessor this component is registered to has changed.| Modifier and Type | Method and Description |
|---|---|
static EventTrackerStatusChangeListener |
noOp()
Returns a no-op implementation of the
EventTrackerStatusChangeListener. |
void |
onEventTrackerStatusChange(Map<Integer,EventTrackerStatus> updatedTrackerStatus)
Notification that an
EventTrackerStatus has changed. |
default boolean |
validatePositions()
Flag dictating whether an
EventTrackerStatus's positions (e.g. |
void onEventTrackerStatusChange(Map<Integer,EventTrackerStatus> updatedTrackerStatus)
EventTrackerStatus has changed. Implementations should take into account that this
listener may be called concurrently, and that multiple invocations do not necessarily reflect the order in which
changes have occurred. If this order is important to the implementation, it should verify the Segment and
the status' positions of the given updatedTrackerStatus through the EventTrackerStatus.getSegment() and EventTrackerStatus.getCurrentPosition() methods respectively.updatedTrackerStatus - the updated EventTrackerStatus to react ondefault boolean validatePositions()
EventTrackerStatus's positions (e.g. EventTrackerStatus.getCurrentPosition()) should be taken into account as a change to listen for. Defaults to
false, as positions typically change a lot in a running system.true if positions should be validated, false otherwise.static EventTrackerStatusChangeListener noOp()
EventTrackerStatusChangeListener.EventTrackerStatusChangeListenerCopyright © 2010–2023. All rights reserved.