Package com.bytedesk.core.schedule.event
Class AbstractScheduleEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.bytedesk.core.schedule.event.AbstractScheduleEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ScheduleCreateEvent,ScheduleDeleteEvent,ScheduleUpdateEvent
public abstract class AbstractScheduleEvent
extends org.springframework.context.ApplicationEvent
Ensures every schedule-related application event carries a detached snapshot so
async listeners never touch managed persistence contexts from other threads.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractScheduleEvent(Object source, ScheduleEntity schedule) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
schedule
-
-
Constructor Details
-
AbstractScheduleEvent
-
-
Method Details
-
getSchedule
-
snapshot
-