public class Event<T extends InterceptionContext> extends Object
Modifier and Type | Field and Description |
---|---|
protected T |
context
The event context of the interception
|
protected long |
createdAt
The event creation time
|
protected String |
subject
The subject of the event
|
Constructor and Description |
---|
Event(String subject,
T context)
Creates an interceptor event with the given subject and the current time as the creation time
|
Modifier and Type | Method and Description |
---|---|
T |
getContext()
Gets the event type
|
long |
getCreatedAt()
Gets the creation time as a long value of the interceptor event
|
String |
getSubject()
Gets the subject of the interceptor event
|
protected String subject
protected T extends InterceptionContext context
protected final long createdAt
public String getSubject()
public long getCreatedAt()
public T getContext()
Copyright © 2010–2016 AdroitLogic. All rights reserved.