@Named(value="eventhubs") @Dependent public class EventHubsChangeConsumer extends BaseChangeConsumer implements DebeziumEngine.ChangeConsumer<ChangeEvent<Object,Object>>
| Modifier and Type | Field and Description |
|---|---|
private static String |
CONNECTION_STRING_FORMAT |
private String |
connectionString |
(package private) javax.enterprise.inject.Instance<com.azure.messaging.eventhubs.EventHubProducerClient> |
customProducer |
private String |
eventHubName |
private static org.slf4j.Logger |
LOGGER |
private Integer |
maxBatchSize |
private String |
partitionID |
private String |
partitionKey |
private com.azure.messaging.eventhubs.EventHubProducerClient |
producer |
private static String |
PROP_CONNECTION_STRING_NAME |
private static String |
PROP_EVENTHUB_NAME |
private static String |
PROP_MAX_BATCH_SIZE |
private static String |
PROP_PARTITION_ID |
private static String |
PROP_PARTITION_KEY |
private static String |
PROP_PREFIX |
streamNameMapper| Constructor and Description |
|---|
EventHubsChangeConsumer() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
close() |
(package private) void |
connect() |
void |
handleBatch(List<ChangeEvent<Object,Object>> records,
DebeziumEngine.RecordCommitter<ChangeEvent<Object,Object>> committer) |
getBytes, getConfigSubset, getString, unsupportedTypeMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsTombstoneEventsprivate static final org.slf4j.Logger LOGGER
private static final String PROP_PREFIX
private static final String PROP_CONNECTION_STRING_NAME
private static final String PROP_EVENTHUB_NAME
private static final String PROP_PARTITION_ID
private static final String PROP_PARTITION_KEY
private static final String PROP_MAX_BATCH_SIZE
private String connectionString
private String eventHubName
private String partitionID
private String partitionKey
private Integer maxBatchSize
private static final String CONNECTION_STRING_FORMAT
private com.azure.messaging.eventhubs.EventHubProducerClient producer
@Inject @CustomConsumerBuilder javax.enterprise.inject.Instance<com.azure.messaging.eventhubs.EventHubProducerClient> customProducer
@PostConstruct void connect()
@PreDestroy void close()
public void handleBatch(List<ChangeEvent<Object,Object>> records, DebeziumEngine.RecordCommitter<ChangeEvent<Object,Object>> committer) throws InterruptedException
handleBatch in interface DebeziumEngine.ChangeConsumer<ChangeEvent<Object,Object>>InterruptedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.