2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.sal.connect.netconf.sal.tx;
11 interface TxListener {
14 * Invoked, when transaction completes successfully.
15 * @param transaction transaction
17 void onTransactionSuccessful(AbstractWriteTx transaction);
20 * Invoked, when transaction fails.
22 * @param transaction transaction
25 void onTransactionFailed(AbstractWriteTx transaction, Throwable cause);
28 * Invoked, when transaction is cancelled.
29 * @param transaction transaction
31 void onTransactionCancelled(AbstractWriteTx transaction);
34 * Invoked, when transaction is submitted.
35 * @param transaction transaction
37 void onTransactionSubmitted(AbstractWriteTx transaction);