Package de.xima.fc.event.ms.impl
Class EventDistributionResolver
- java.lang.Object
-
- de.xima.fc.event.ms.impl.EventDistributionResolver
-
public final class EventDistributionResolver extends Object
Resolves theEventDistributionof an event payload.- Since:
- 8.6.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventDistributionresolve(Serializable payload)Returns theEventDistributiondeclared on the type of the given event payload.
-
-
-
Method Detail
-
resolve
public static EventDistribution resolve(Serializable payload)
Returns theEventDistributiondeclared on the type of the given event payload.- Parameters:
payload- the event payload- Returns:
- the distribution declared on the payload type
- Throws:
IllegalArgumentException- if the payload isnullor its type is not annotated withEventDistribution
-
-