Search in sources :

Example 1 with PerSourceTransaction

use of com.linkedin.databus2.producers.ds.PerSourceTransaction in project databus by linkedin.

the class ORListener method startSource.

private void startSource(String newTableName) {
    Short srcId = _tableUriToSrcIdMap.get(newTableName);
    _ignoreSource = null == srcId;
    if (_ignoreSource) {
        LOG.info("Ignoring source: " + newTableName);
        return;
    }
    LOG.info("Starting source: " + newTableName);
    assert (_transaction != null);
    if (_transaction.getPerSourceTransaction(srcId) == null) {
        _transaction.mergePerSourceTransaction(new PerSourceTransaction(srcId));
    }
}
Also used : PerSourceTransaction(com.linkedin.databus2.producers.ds.PerSourceTransaction)

Aggregations

PerSourceTransaction (com.linkedin.databus2.producers.ds.PerSourceTransaction)1