public abstract class AbstractDOMBrokerTransaction<T extends DOMStoreTransaction> extends Object implements AsyncTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
Modifier | Constructor and Description |
---|---|
protected |
AbstractDOMBrokerTransaction(Object identifier,
Map<LogicalDatastoreType,? extends DOMStoreTransactionFactory> storeTxFactories)
Creates new composite Transactions.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
protected void |
closeSubtransactions() |
protected abstract T |
createTransaction(LogicalDatastoreType key) |
Object |
getIdentifier() |
protected T |
getSubtransaction(LogicalDatastoreType key)
Returns subtransaction associated with supplied key.
|
protected Collection<T> |
getSubtransactions()
Returns immutable Iterable of all subtransactions.
|
protected DOMStoreTransactionFactory |
getTxFactory(LogicalDatastoreType type) |
String |
toString() |
protected AbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType,? extends DOMStoreTransactionFactory> storeTxFactories)
identifier
- Identifier of transaction.protected final T getSubtransaction(LogicalDatastoreType key)
key
- the data store type keyNullPointerException
- if key is nullIllegalArgumentException
- if no subtransaction is associated with key.protected abstract T createTransaction(LogicalDatastoreType key)
protected Collection<T> getSubtransactions()
public Object getIdentifier()
getIdentifier
in interface AsyncTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<Object>
protected void closeSubtransactions()
protected DOMStoreTransactionFactory getTxFactory(LogicalDatastoreType type)
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.