public interface DOMStoreTransactionChain extends DOMStoreTransactionFactory, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes Transaction Chain.
|
DOMStoreReadTransaction |
newReadOnlyTransaction()
Create a new read only transaction which will continue the chain.
|
DOMStoreReadWriteTransaction |
newReadWriteTransaction()
Create a new read write transaction which will continue the chain.
|
DOMStoreWriteTransaction |
newWriteOnlyTransaction()
Create a new write-only transaction which will continue the chain.
|
DOMStoreReadTransaction newReadOnlyTransaction()
DOMStoreTransactionFactory.newReadOnlyTransaction()
and contains merged result of previous one and current state of data store.
Otherwise read-only transaction presents isolated view as if previous read-write
transaction was successful. State which was introduced by other transactions
outside this transaction chain after creation of previous transaction is not visible.newReadOnlyTransaction
in interface DOMStoreTransactionFactory
IllegalStateException
- if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.DOMStoreReadWriteTransaction newReadWriteTransaction()
If previous write transaction was already commited to data store, new
read-write transaction is same as obtained via DOMStoreTransactionFactory.newReadWriteTransaction()
and contains merged result of previous one and current state of data store.
Otherwise read-write transaction presents isolated view as if previous read-write transaction was successful. State which was introduced by other transactions outside this transaction chain after creation of previous transaction is not visible.
newReadWriteTransaction
in interface DOMStoreTransactionFactory
IllegalStateException
- if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.DOMStoreWriteTransaction newWriteOnlyTransaction()
newWriteOnlyTransaction
in interface DOMStoreTransactionFactory
IllegalStateException
- if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.void close()
Close method of transaction chain does not guarantee that last alocated transaction is ready or was submitted.
close
in interface AutoCloseable
IllegalStateException
- If any of the outstanding created transactions was not canceled or ready.Copyright © 2019 OpenDaylight. All rights reserved.