Package org.opendaylight.genius.infra
Class TransactionAdapter
- java.lang.Object
-
- org.opendaylight.genius.infra.TransactionAdapter
-
@Deprecated public final class TransactionAdapter extends java.lang.Object
Deprecated.Adapter allowing managed, datastore-constrained transactions to be used with methods expecting genericDataBroker
transactions.The adapted transactions maintain the following constraints: they cannot be cancelled or submitted (only the transaction manager can do this), and they cannot access a logical datastore other than the one they were created for.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.opendaylight.mdsal.binding.api.ReadWriteTransaction
toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.static org.opendaylight.mdsal.binding.api.WriteTransaction
toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained write transaction to a generic write transaction.
-
-
-
Method Detail
-
toReadWriteTransaction
public static org.opendaylight.mdsal.binding.api.ReadWriteTransaction toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.- Parameters:
datastoreTx
- The transaction to adapt.- Returns:
- The adapted transaction.
-
toWriteTransaction
public static org.opendaylight.mdsal.binding.api.WriteTransaction toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained write transaction to a generic write transaction. Note that this can be used to adapt a read-write transaction to a write transaction.- Parameters:
datastoreTx
- The transaction to adapt.- Returns:
- The adapted transaction.
-
-