Deprecate old MD-SAL APIs for removal
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / data / TransactionChainListener.java
index 4dac6f557ebda436b29d2e1aaea9df86682fb90a..c27ef75c70f9f8679b05f2e4a7000daebb549f55 100644 (file)
@@ -12,6 +12,7 @@ import java.util.EventListener;
 /**
  * Listener for transaction chain events.
  */
+@Deprecated(forRemoval = true)
 public interface TransactionChainListener extends EventListener {
     /**
      * Invoked if when a transaction in the chain fails. All other transactions are automatically cancelled by the time
@@ -21,7 +22,7 @@ public interface TransactionChainListener extends EventListener {
      * @param transaction Transaction which caused the chain to fail
      * @param cause The cause of transaction failure
      */
-    void onTransactionChainFailed(TransactionChain<?, ?> chain, DataModification<?, ?> transaction, Throwable cause);
+    void onTransactionChainFailed(TransactionChain<?, ?> chain, AsyncTransaction<?, ?> transaction, Throwable cause);
 
     /**
      * Invoked when a transaction chain is completed. A transaction chain is considered completed when it has been