@Beta public final class BindingDOMTransactionChainAdapter extends Object implements TransactionChain, org.opendaylight.yangtools.concepts.Delegator<DOMTransactionChain>
Constructor and Description |
---|
BindingDOMTransactionChainAdapter(DOMDataBroker chainFactory,
BindingToNormalizedNodeCodec codec,
TransactionChainListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DOMTransactionChain |
getDelegate() |
ReadTransaction |
newReadOnlyTransaction()
Create a new read only transaction which will continue the chain.
|
WriteTransaction |
newWriteOnlyTransaction()
Create a new write-only transaction which will continue the chain.
|
public BindingDOMTransactionChainAdapter(DOMDataBroker chainFactory, BindingToNormalizedNodeCodec codec, TransactionChainListener listener)
public DOMTransactionChain getDelegate()
getDelegate
in interface org.opendaylight.yangtools.concepts.Delegator<DOMTransactionChain>
public ReadTransaction newReadOnlyTransaction()
TransactionChain
The previous write transaction has to be either SUBMITTED (commit
was invoked)
or CANCELLED (close
was invoked).
The returned read-only transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this read-only transaction will see the state changes made by the previous write transaction in the chain. However, state which was introduced by other transactions outside this transaction chain after creation of the previous transaction is not visible.
newReadOnlyTransaction
in interface TransactionChain
newReadOnlyTransaction
in interface TransactionFactory
public WriteTransaction newWriteOnlyTransaction()
TransactionChain
The previous write transaction has to be either SUBMITTED (commit
was invoked)
or CANCELLED (close
was invoked)
The returned write-only transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this write-only transaction will see the state changes made by the previous write transaction in the chain. However, state which was introduced by other transactions outside this transaction chain after creation of the previous transaction is not visible
Committing this write-only transaction using commit
will commit the state
changes in this transaction to be visible to any subsequent transaction in this chain and also to any transaction
outside this chain.
newWriteOnlyTransaction
in interface TransactionChain
newWriteOnlyTransaction
in interface TransactionFactory
public void close()
close
in interface AutoCloseable
close
in interface org.opendaylight.yangtools.concepts.Registration
Copyright © 2019 OpenDaylight. All rights reserved.