Class TransactionAdapter


  • @Deprecated
    public final class TransactionAdapter
    extends java.lang.Object
    Deprecated.
    Adapter allowing managed, datastore-constrained transactions to be used with methods expecting generic DataBroker 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.controller.md.sal.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.controller.md.sal.binding.api.WriteTransaction toWriteTransaction​(TypedWriteTransaction<? extends Datastore> datastoreTx)
      Deprecated.
      Adapts the given datastore-constrained write transaction to a generic write transaction.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toReadWriteTransaction

        public static org.opendaylight.controller.md.sal.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.controller.md.sal.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.