Class IntegrationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.integration.events.IntegrationEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileIntegrationEvent
,FileServerEvent
,IpIntegrationEvent
,MailIntegrationEvent
,MessageGroupExpiredEvent
,MqttIntegrationEvent
,RedisIntegrationEvent
,RSocketConnectedEvent
,StompIntegrationEvent
,StreamClosedEvent
Base class for all
ApplicationEvent
s generated by the framework.
Contains an optional cause field; a separate Exception event hierarchy
is not possible because of Java single inheritance (modules should make
all their events subclasses of 'xxxIntegrationEvent').- Since:
- 3.0
- Author:
- Gary Russell
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionIntegrationEvent
(Object source) IntegrationEvent
(Object source, Throwable cause) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
cause
-
-
Constructor Details
-
IntegrationEvent
-
IntegrationEvent
-
-
Method Details
-
getCause
-
getSourceAsType
public <T> T getSourceAsType()Get the source as a specific type; the receiving variable must be declared with the correct type.- Type Parameters:
T
- the type.- Returns:
- the source.
- Since:
- 5.4
-
toString
- Overrides:
toString
in classEventObject
-