Interface EventReader.UpcastedCallback
- Enclosing interface:
EventReader
public static interface EventReader.UpcastedCallback
Callback interface specifying operations to deal with an encapsulated upcasted
Event
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(BiConsumer<Map<String, ?>, Object> eventConsumer) Converts the encapsulatedEvent
to meta-data and a Java object of the type determined bygetEventJavaClass()
and maps it to the given consumer.default void
Converts the encapsulatedEvent
to a Java object of the type determined bygetEventJavaClass()
and maps it to the given consumer.Class
<?>
-
Method Details
-
getEventJavaClass
Class<?> getEventJavaClass()- Returns:
- the associated Java type
- See Also:
-
convert
Converts the encapsulatedEvent
to a Java object of the type determined bygetEventJavaClass()
and maps it to the given consumer.- Parameters:
eventConsumer
- consumer for the converted Java event object- See Also:
-
convert
Converts the encapsulatedEvent
to meta-data and a Java object of the type determined bygetEventJavaClass()
and maps it to the given consumer.- Parameters:
eventConsumer
- bi-consumer for the meta-data map and the converted Java event object- See Also:
-