Class ForwardingDOMTransactionChain
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.controller.md.sal.dom.spi.ForwardingDOMTransactionChain
-
- All Implemented Interfaces:
AutoCloseable
,AsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
,TransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
,DOMTransactionChain
@Deprecated(forRemoval=true) public abstract class ForwardingDOMTransactionChain extends ForwardingObject implements DOMTransactionChain
Deprecated, for removal: This API element is subject to removal in a future version.UseForwardingDOMTransactionChain
instead.UtilityDOMTransactionChain
implementation which forwards all interface method invocation to a delegate instance.
-
-
Constructor Summary
Constructors Constructor Description ForwardingDOMTransactionChain()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated, for removal: This API element is subject to removal in a future version.protected abstract @NonNull DOMTransactionChain
delegate()
Deprecated, for removal: This API element is subject to removal in a future version.DOMDataReadOnlyTransaction
newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new read only transaction which will continue the chain.DOMDataReadWriteTransaction
newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new read-write transaction which will continue the chain.DOMDataWriteTransaction
newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new write-only transaction which will continue the chain.-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Method Detail
-
delegate
protected abstract @NonNull DOMTransactionChain delegate()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
delegate
in classForwardingObject
-
close
public void close()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
-
newReadOnlyTransaction
public DOMDataReadOnlyTransaction newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChain
Create a new read only transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submit
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.
- Specified by:
newReadOnlyTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadOnlyTransaction
in interfaceDOMTransactionChain
- Specified by:
newReadOnlyTransaction
in interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
- Returns:
- New transaction in the chain.
-
newReadWriteTransaction
public DOMDataReadWriteTransaction newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChain
Create a new read-write transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submit
was invoked) or CANCELLED (close
was invoked).The returned read-write transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this read-write 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 read-write transaction using
submit
will submit the state changes in this transaction to be visible to any subsequent transaction in this chain and also to any transaction outside this chain.- Specified by:
newReadWriteTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadWriteTransaction
in interfaceDOMTransactionChain
- Specified by:
newReadWriteTransaction
in interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
- Returns:
- New transaction in the chain.
-
newWriteOnlyTransaction
public DOMDataWriteTransaction newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChain
Create a new write-only transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submit
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
submit
will submit the state changes in this transaction to be visible to any subsequent transaction in this chain and also to any transaction outside this chain.- Specified by:
newWriteOnlyTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newWriteOnlyTransaction
in interfaceDOMTransactionChain
- Specified by:
newWriteOnlyTransaction
in interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
- Returns:
- New transaction in the chain.
-
-