Interface LogEventHandler

All Superinterfaces:
Iterable<TimerEvent>, Named, TimerEventHandler
All Known Implementing Classes:
LogEventHandlerImpl

public interface LogEventHandler extends TimerEventHandler, Iterable<TimerEvent>
A TimerEventHandler that stores all events that is receives. It can be used in the JDK 5 for loop.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Discard the contents of the log.
    void
    Display the contents of this log in formatted form to the PrintStream.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Named

    factory, name

    Methods inherited from interface org.glassfish.pfl.tf.timer.spi.TimerEventHandler

    notify
  • Method Details

    • clear

      void clear()
      Discard the contents of the log.
    • display

      void display(PrintStream arg, String msg)
      Display the contents of this log in formatted form to the PrintStream.