Search in sources :

Example 1 with TransactionChain

use of org.opendaylight.controller.md.sal.common.api.data.TransactionChain in project openflowplugin by opendaylight.

the class TransactionChainManager method createTxChain.

@GuardedBy("txLock")
private void createTxChain() {
    BindingTransactionChain txChainFactoryTemp = transactionChain;
    transactionChain = dataBroker.createTransactionChain(TransactionChainManager.this);
    Optional.ofNullable(txChainFactoryTemp).ifPresent(TransactionChain::close);
}
Also used : BindingTransactionChain(org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain) TransactionChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChain) BindingTransactionChain(org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain) GuardedBy(javax.annotation.concurrent.GuardedBy)

Aggregations

GuardedBy (javax.annotation.concurrent.GuardedBy)1 BindingTransactionChain (org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain)1 TransactionChain (org.opendaylight.controller.md.sal.common.api.data.TransactionChain)1