Class AbstractDOMBrokerTransaction<T extends DOMStoreTransaction>
java.lang.Object
org.opendaylight.controller.cluster.databroker.AbstractDOMBrokerTransaction<T>
- All Implemented Interfaces:
DOMDataTreeTransaction,Identifiable<Object>
- Direct Known Subclasses:
AbstractDOMBrokerWriteTransaction,DOMBrokerReadOnlyTransaction
public abstract class AbstractDOMBrokerTransaction<T extends DOMStoreTransaction>
extends Object
implements DOMDataTreeTransaction
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType, ? extends DOMStoreTransactionFactory> storeTxFactories) Creates new composite Transactions. -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) protected voidprotected abstract Tprotected final TReturns subtransaction associated with supplied key.protected Collection<T>Returns immutable Iterable of all subtransactions.protected DOMStoreTransactionFactoryfinal StringtoString()
-
Constructor Details
-
AbstractDOMBrokerTransaction
protected AbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType, ? extends DOMStoreTransactionFactory> storeTxFactories) Creates new composite Transactions.- Parameters:
identifier- Identifier of transaction.
-
-
Method Details
-
getSubtransaction
Returns subtransaction associated with supplied key.- Parameters:
key- the data store type key- Returns:
- the subtransaction
- Throws:
NullPointerException- if key is nullIllegalArgumentException- if no subtransaction is associated with key.
-
createTransaction
-
getSubtransactions
Returns immutable Iterable of all subtransactions. -
getIdentifier
- Specified by:
getIdentifierin interfaceIdentifiable<T extends DOMStoreTransaction>
-
closeSubtransactions
protected void closeSubtransactions() -
getTxFactory
-
toString
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
-