Move netconf-console to apps/
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / sal / tx / TxListener.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.netconf.sal.connect.netconf.sal.tx;
10
11 interface TxListener {
12
13     /**
14      * Invoked, when transaction completes successfully.
15      * @param transaction transaction
16      */
17     void onTransactionSuccessful(AbstractWriteTx transaction);
18
19     /**
20      * Invoked, when transaction fails.
21      *
22      * @param transaction transaction
23      * @param cause cause
24      */
25     void onTransactionFailed(AbstractWriteTx transaction, Throwable cause);
26
27     /**
28      * Invoked, when transaction is cancelled.
29      * @param transaction transaction
30      */
31     void onTransactionCancelled(AbstractWriteTx transaction);
32
33     /**
34      * Invoked, when transaction is submitted.
35      * @param transaction transaction
36      */
37     void onTransactionSubmitted(AbstractWriteTx transaction);
38
39
40 }