org.springframework.context.ApplicationListener , org.springframework.context.event.EventListener
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
use serialVersionUID from Spring 1.2 for interoperability.
|
| private final long | timestamp
System time when the event happened. |
| Access | Constructor and Description |
|---|---|
| public | ApplicationEvent(Object
the object on which the event initially occurred or with
which the event is associated (never source)null)Create a new |
| public | ApplicationEvent(Object
the object on which the event initially occurred or with
which the event is associated (never source, Clock null)a clock which will provide the timestamp clock)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public final long |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. use serialVersionUID from Spring 1.2 for interoperability. | |
| timestamp | back to summary |
|---|---|
| private final long timestamp System time when the event happened. | |
| ApplicationEvent | back to summary |
|---|---|
| public ApplicationEvent(Object source) Create a new
| |
| ApplicationEvent | back to summary |
|---|---|
| public ApplicationEvent(Object source, Clock clock) Create a new This constructor is typically used in testing scenarios.
| |
| getTimestamp | back to summary |
|---|---|
| public final long getTimestamp() Return the time in milliseconds when the event occurred. | |