2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.jeelink.internal.connection;
16 * Listener that is notified on connection status changes of JeeLinkConnections
17 * as well as when input has been read from the connection.
19 * @author Volker Bier - Initial contribution
21 public interface ConnectionListener {
23 * Called when the connection has been opened.
25 void connectionOpened();
28 * Called when the connection has been closed.
30 void connectionClosed();
33 * Called when the connection has been aborted.
35 * @param cause a text describing the cause of the abort.
37 void connectionAborted(String cause);
40 * Called whenever input has been read from the connection.
42 void handleInput(String input);