Class AbstractEventDispatcher
- java.lang.Object
-
- io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
-
- All Implemented Interfaces:
EventDispatcher
- Direct Known Subclasses:
DebeziumTracerEventDispatcher,DefaultEventDispatcher
public abstract class AbstractEventDispatcher extends Object implements EventDispatcher
Abstract base class for the Debezium OutboxEventDispatchercontract.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAGGREGATE_IDprotected static StringAGGREGATE_TYPE(package private) DebeziumOutboxRuntimeConfigconfigDebezium runtime configuration(package private) javax.persistence.EntityManagerentityManagerprivate static org.slf4j.LoggerLOGGERprotected static StringPAYLOADprotected static StringTIMESTAMPprotected static StringTYPE
-
Constructor Summary
Constructors Constructor Description AbstractEventDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>getDataMapFromEvent(ExportedEvent<?,?> event)protected voidpersist(Map<String,Object> dataMap)Persists the map of key/value pairs to the database.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.outbox.quarkus.internal.EventDispatcher
onExportedEvent
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
TIMESTAMP
protected static final String TIMESTAMP
- See Also:
- Constant Field Values
-
PAYLOAD
protected static final String PAYLOAD
- See Also:
- Constant Field Values
-
TYPE
protected static final String TYPE
- See Also:
- Constant Field Values
-
AGGREGATE_ID
protected static final String AGGREGATE_ID
- See Also:
- Constant Field Values
-
AGGREGATE_TYPE
protected static final String AGGREGATE_TYPE
- See Also:
- Constant Field Values
-
entityManager
@Inject javax.persistence.EntityManager entityManager
-
config
@Inject DebeziumOutboxRuntimeConfig config
Debezium runtime configuration
-
-