Interface Event
-
- All Known Subinterfaces:
FileEvent
,LockFileEvent
,MailEvent
,MemoryResultSetEvent
,ResultSetEvent
- All Known Implementing Classes:
AbstractEvent
,FileEventImpl
,LockFileEventImpl
,MailEventImpl
,MemoryResultSetEventImpl
,ResultSetEventImpl
public interface Event
This interface represents an event source and event handler. An event can be identified uniquely. It need not be serialisable, but non-serialisable events can only be used locally, that is event source and event handler need to be executed in the very same JVM.- Author:
- Ulrich Kreher, Marc Heinzelmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCreationTime()
Gets the time (in milliseconds) this event has been created.URI[]
getEventManager()
Gets theURI
of the event manager of the event source that produced this event.String
getEventType()
Gets the type of this event.long
getID()
Gets the ID for this event that is set consecutively for all events of the same type produced by the same event source.String
getSourceID()
Gets the ID of the source of this event.String
getSourceType()
Gets the type of the source of this event.
-
-
-
Method Detail
-
getID
long getID()
Gets the ID for this event that is set consecutively for all events of the same type produced by the same event source.- Returns:
- The ID for this event.
-
getEventManager
URI[] getEventManager()
Gets theURI
of the event manager of the event source that produced this event.- Returns:
- The
URI
of the event manager of the event source that produced this event.
-
getEventType
String getEventType()
Gets the type of this event.- Returns:
- The type of this event.
-
getSourceType
String getSourceType()
Gets the type of the source of this event.- Returns:
- The type of the source of of this event.
-
getSourceID
String getSourceID()
Gets the ID of the source of this event.- Returns:
- The ID of the source of of this event.
-
getCreationTime
long getCreationTime()
Gets the time (in milliseconds) this event has been created.- Returns:
- The time (in milliseconds) this event has been created.
- See Also:
System.currentTimeMillis()
-
-