com.h3c.util.event

## Interface TypedEvent<T extends Enum<?>>

- Type Parameters:
    `T` - Event type class
  All Superinterfaces:
    Event
  All Known Subinterfaces:
    CheckpointEvent, DataPathEvent, ErrorEvent, FlowEvent, GroupEvent, ListenerEvent, MessageEvent, MeterEvent, OpenflowEvent, QueueEvent
  All Known Implementing Classes:
    AbstractTypedEvent

      public interface TypedEvent<T extends Enum<?>>
      extends Event

  A "typed" event that is timestamped. The event types are defined in an enumeration.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `ts()` Returns the event timestamp - when it happened.
    `T` | `type()` Returns the type of event - what happened.

- - ### Method Detail

    - #### ts

          long ts()

      Returns the event timestamp - when it happened.

      The timestamp is set to `System.currentTimeMillis()` at the time the event was created.

      Returns:
        the timestamp

    - #### type

          T type()

      Returns the type of event - what happened.
      Returns:
        the event type

Copyright © 2014. All Rights Reserved.