@Beta public class BindingDOMDataTreeProducerAdapter extends Object implements DataTreeProducer
| Modifier and Type | Method and Description |
|---|---|
void |
close()
.
|
static DataTreeProducer |
create(DOMDataTreeProducer domProducer,
BindingToNormalizedNodeCodec codec)
Create instance of producer data tree.
|
DataTreeProducer |
createProducer(Collection<DataTreeIdentifier<?>> subtrees)
Create a producer, which is able to access to a set of trees.
|
CursorAwareWriteTransaction |
createTransaction(boolean isolated)
Allocate a new open transaction on this producer.
|
public static DataTreeProducer create(DOMDataTreeProducer domProducer, BindingToNormalizedNodeCodec codec)
domProducer - - DOM producercodec - - codec for serialize/deserialize@Nonnull public CursorAwareWriteTransaction createTransaction(boolean isolated)
DataTreeProducercreateTransaction in interface DataTreeProducerisolated - Indicates whether this transaction should be a barrier. A barrier transaction
is processed separately from any preceding transactions. Non-barrier transactions may
be merged and processed in a batch, such that any observers see the modifications
contained in them as if the modifications were made in a single transaction.CursorAwareWriteTransaction@Nonnull public DataTreeProducer createProducer(@Nonnull Collection<DataTreeIdentifier<?>> subtrees)
DataTreeProducer
When invoked on a DataTreeProducer, this method has additional restrictions. There
may not be an open transaction from this producer. The method needs to be invoked in
appropriate context, e.g. bound or unbound.
Specified subtrees must be accessible by this producer. Accessible means they are a subset of the subtrees specified when the producer is instantiated. The set is further reduced as child producers are instantiated -- if you create a producer for /a and then a child for /a/b, /a/b is not accessible from the first producer.
Once this method returns successfully, this (parent) producer loses the ability to access the specified paths until the resulting (child) producer is shut down.
createProducer in interface DataTreeProducercreateProducer in interface DataTreeProducerFactorysubtrees - The collection of subtrees the resulting producer should have access to.DataTreeProducer instance.public void close()
throws DataTreeProducerException
DataTreeProducerclose in interface AutoCloseableclose in interface DataTreeProducerDataTreeProducerExceptionCopyright © 2018 OpenDaylight. All rights reserved.