Package com.bytedesk.service.agent.event
Class AbstractAgentEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.bytedesk.service.agent.event.AbstractAgentEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AgentCreateEvent,AgentUpdateEvent,AgentUpdateStatusEvent
public abstract class AbstractAgentEvent
extends org.springframework.context.ApplicationEvent
Provides a detached snapshot of the agent so async listeners avoid touching
managed persistence contexts owned by other threads.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
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:
-
agent
-
-
Constructor Details
-
AbstractAgentEvent
-
-
Method Details
-
getAgent
-
snapshot
-