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 
ApplicationEvents 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
FieldsFields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionIntegrationEvent(Object source) IntegrationEvent(Object source, Throwable cause)  - 
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods 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:
 toStringin classEventObject
 
 -