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 SummaryFieldsFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionIntegrationEvent(Object source) IntegrationEvent(Object source, Throwable cause) 
- 
Method SummaryMethods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource
- 
Field Details- 
cause
 
- 
- 
Constructor Details- 
IntegrationEvent
- 
IntegrationEvent
 
- 
- 
Method Details- 
getCause
- 
getSourceAsTypepublic <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 class- EventObject
 
 
-