@ApplicationScoped public class EventDispatcher extends Object
ExportedEvent events and when detected, persists those events to the
underlying database allowing Debezium to then capture and emit those change
events.| Modifier and Type | Field and Description |
|---|---|
private static String |
AGGREGATE_ID |
private static String |
AGGREGATE_TYPE |
(package private) DebeziumOutboxRuntimeConfig |
config
Debezium runtime configuration
|
(package private) javax.persistence.EntityManager |
entityManager |
private static org.slf4j.Logger |
LOGGER |
private static String |
OPERATION_NAME |
private static String |
PAYLOAD |
private static String |
TIMESTAMP |
(package private) io.opentracing.Tracer |
tracer |
private static String |
TRACING_COMPONENT |
static String |
TRACING_SPAN_CONTEXT |
private static String |
TYPE |
| Constructor and Description |
|---|
EventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
onExportedEvent(ExportedEvent<?,?> event)
An event handler for
ExportedEvent events and will be called when
the event fires. |
private static final String OPERATION_NAME
private static final String TIMESTAMP
private static final String PAYLOAD
private static final String TYPE
private static final String AGGREGATE_ID
private static final String AGGREGATE_TYPE
public static final String TRACING_SPAN_CONTEXT
private static final String TRACING_COMPONENT
private static final org.slf4j.Logger LOGGER
@Inject javax.persistence.EntityManager entityManager
@Inject DebeziumOutboxRuntimeConfig config
@Inject io.opentracing.Tracer tracer
public void onExportedEvent(@Observes
ExportedEvent<?,?> event)
ExportedEvent events and will be called when
the event fires.event - the exported eventCopyright © 2021 JBoss by Red Hat. All rights reserved.