]> git.basschouten.com Git - openhab-addons.git/blob
c6b9ff1a1365504740b0dece3d3dc865b8c91745
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.jeelink.internal.connection;
14
15 /**
16  * Listener that is notified on connection status changes of JeeLinkConnections
17  * as well as when input has been read from the connection.
18  *
19  * @author Volker Bier - Initial contribution
20  */
21 public interface ConnectionListener {
22     /**
23      * Called when the connection has been opened.
24      */
25     void connectionOpened();
26
27     /**
28      * Called when the connection has been closed.
29      */
30     void connectionClosed();
31
32     /**
33      * Called when the connection has been aborted.
34      *
35      * @param cause a text describing the cause of the abort.
36      */
37     void connectionAborted(String cause);
38
39     /**
40      * Called whenever input has been read from the connection.
41      */
42     void handleInput(String input);
43 }