Class StoreTimerSnapshot

    • Method Detail

      • containsCounter

        public boolean containsCounter​(@Nonnull
                                       StoreTimer.Event event)
        Determine if there is a counter recorded for a given event.
        Parameters:
        event - the event of interest
        Returns:
        true if a counter exists for the event of interest
      • containsTimeoutCounter

        public boolean containsTimeoutCounter​(@Nonnull
                                              StoreTimer.Event event)
        Determine if there is a timeout counter recorded for a given event.
        Parameters:
        event - the event of interest
        Returns:
        true if a timeout counter exists for the event of interest
      • derivedFrom

        public boolean derivedFrom​(StoreTimer timer)
        Determine if this snapshot is derived from the provided timer.
        Parameters:
        timer - the provided timer
        Returns:
        true if it is valid to diff this snapshot from the provided timer
      • takenAfterReset

        public boolean takenAfterReset​(StoreTimer timer)
        Determine if this snapshot was taken after the provided timer was last reset.
        Parameters:
        timer - the provided timer
        Returns:
        true if this snapshot was taken after the provided timer was last reset
      • setResetTime

        public void setResetTime​(StoreTimer timer)
        Set the reset time on the provided timer to the create time of this snapshot.
        Parameters:
        timer - the provided timer to srt