Class EventExternalized<S,T>
java.lang.Object
org.springframework.modulith.events.EventExternalized<S,T>
- All Implemented Interfaces:
ResolvableTypeProvider
An infrastructure event signaling that an application event has been externalized with a particular, broker-specific
result.
- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorDescriptionEventExternalized
(S event, Object mapped, RoutingTarget target, T brokerResult) Creates a newEventExternalized
event for the given source event, its mapped derivative,RoutingTarget
and broker result. -
Method Summary
-
Constructor Details
-
EventExternalized
Creates a newEventExternalized
event for the given source event, its mapped derivative,RoutingTarget
and broker result.- Parameters:
event
- must not be null.mapped
- must not be null.target
- must not be null.brokerResult
- can be null
-
-
Method Details
-
getEvent
Returns the source event.- Returns:
- will never be null.
-
getEventType
Returns the type of the source event.- Returns:
- will never be null.
-
getMapped
Returns the mapped event.- Returns:
- will never be null.
-
getTarget
Returns the routing target.- Returns:
- will never be null.
-
getBrokerResult
Returns the broker result.- Returns:
- can be null.
-
getResolvableType
- Specified by:
getResolvableType
in interfaceResolvableTypeProvider
-
equals
-
hashCode
public int hashCode()
-