use of com.dangdang.ddframe.rdb.transaction.soft.api.config.NestedBestEffortsDeliveryJobConfiguration in project sharding-jdbc by dangdangdotcom.
the class Main method getSoftTransactionConfiguration.
private static SoftTransactionConfiguration getSoftTransactionConfiguration(final DataSource dataSource) {
SoftTransactionConfiguration result = new SoftTransactionConfiguration(dataSource);
if (useNestedJob) {
result.setBestEffortsDeliveryJobConfiguration(Optional.of(new NestedBestEffortsDeliveryJobConfiguration()));
}
result.setTransactionLogDataSource(createTransactionLogDataSource());
return result;
}
Aggregations