public class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected InterceptionContext |
context
The event context of the interception
|
protected long |
createdAt
The event creation time
|
protected java.lang.String |
subject
The subject of the event
|
Constructor and Description |
---|
Event(java.lang.String subject,
InterceptionContext context)
Creates an interceptor event with the given subject and the current time as the creation time
|
Modifier and Type | Method and Description |
---|---|
InterceptionContext |
getContext()
Gets the event type
|
long |
getCreatedAt()
Gets the creation time as a long value of the interceptor event
|
java.lang.String |
getSubject()
Gets the subject of the interceptor event
|
protected java.lang.String subject
protected InterceptionContext context
protected final long createdAt
public Event(java.lang.String subject, InterceptionContext context)
subject
- the subject of the eventpublic java.lang.String getSubject()
public long getCreatedAt()
public InterceptionContext getContext()