]> git.basschouten.com Git - openhab-addons.git/blob
06033766beb0db80adfba8bb742fb417c69e1c69
[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.paradoxalarm.internal.communication;
14
15 /**
16  * The {@link IConnectionHandler} is base communication interface which defines only the basic communication level.
17  *
18  * @author Konstantin Polihronov - Initial contribution
19  */
20 public interface IConnectionHandler {
21
22     void close();
23
24     boolean isOnline();
25
26     void setOnline(boolean flag);
27
28     void submitRequest(IRequest request);
29
30     boolean isEncrypted();
31
32     /**
33      * @param stoListener This method sets a listener which is called in case of socket timeout occurrence.
34      */
35     void setStoListener(ISocketTimeOutListener stoListener);
36 }