blob: 1cd49cda32e8a886a28795d3bdd03e6a2e68fe02 [file] [log] [blame]
package org.onlab.onos.event;
/**
* Abstraction of an event.
*/
public interface Event<T extends Enum, S extends Object> {
/**
* Returns the timestamp of when the event occurred, given in milliseconds
* since the start of epoch.
*
* @return timestamp in milliseconds
*/
long time();
/**
* Returns the type of the event.
*
* @return event type
*/
T type();
/**
* Returns the subject of the event.
*
* @return subject to which this event pertains
*/
S subject();
}