Class PerformanceStats.PerformanceListener

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PerformanceListener()
      Creates a new listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void eventFailed​(PerformanceStats event, long duration)
      Notifies than an event exceeded the maximum duration for that event type.
      void eventsOccurred​(PerformanceStats[] event)
      Notifies that an event occurred.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PerformanceListener

        protected PerformanceListener()
        Creates a new listener.
    • Method Detail

      • eventFailed

        public void eventFailed​(PerformanceStats event,
                                long duration)
        Notifies than an event exceeded the maximum duration for that event type.

        This default implementation does nothing. Subclasses may override.

        Parameters:
        event - The event that failed
        duration - The duration of the failed event, in milliseconds
      • eventsOccurred

        public void eventsOccurred​(PerformanceStats[] event)
        Notifies that an event occurred. Notification might not occur in the same thread or near the time of the actual event.

        This default implementation does nothing. Subclasses may override.

        Parameters:
        event - The event that occurred