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.paradoxalarm.internal.communication;
16 * The {@link IConnectionHandler} is base communication interface which defines only the basic communication level.
18 * @author Konstantin Polihronov - Initial contribution
20 public interface IConnectionHandler {
26 void setOnline(boolean flag);
28 void submitRequest(IRequest request);
30 boolean isEncrypted();
33 * @param stoListener This method sets a listener which is called in case of socket timeout occurrence.
35 void setStoListener(ISocketTimeOutListener stoListener);