Class TimedEvent

java.lang.Object
org.bedework.util.jms.events.SysEvent
org.bedework.util.jms.events.TimedEvent
All Implemented Interfaces:
Serializable, Comparable<SysEvent>, MillisecsEvent

public class TimedEvent extends SysEvent implements MillisecsEvent
An event for some timed activity. The label identifies the event
Author:
Mike Douglass
See Also:
  • Constructor Details

    • TimedEvent

      public TimedEvent(String code, String label, long millis)
      Constructor
      Parameters:
      code - identifier
      label - for event
      millis - - time for stats - e.g. time to process login
  • Method Details

    • getLabel

      public String getLabel()
      Returns:
      label
    • getMillis

      public long getMillis()
      Specified by:
      getMillis in interface MillisecsEvent
      Returns:
      millis
    • toStringSegment

      public void toStringSegment(ToString ts)
      Description copied from class: SysEvent
      Add our stuff to the ToString object
      Overrides:
      toStringSegment in class SysEvent
      Parameters:
      ts - ToString for result