Class StateTransitionEvent<T extends Serializable>

  • Type Parameters:
    T - class of state for the metric.
    All Implemented Interfaces:
    Serializable

    public final class StateTransitionEvent<T extends Serializable>
    extends Event
    Event of state transition. It contains timestamp and the state transition.
    See Also:
    Serialized Form
    • Constructor Detail

      • StateTransitionEvent

        public StateTransitionEvent​(long timestamp,
                                    T prevState,
                                    T newState)
    • Method Detail

      • getPrevState

        public T getPrevState()
        Get previous state.
        Returns:
        previous state.
      • getNewState

        public T getNewState()
        Get new state.
        Returns:
        new state.