]> git.basschouten.com Git - openhab-addons.git/blob
71725b0f3c594cd6aff3d58c0680c687cc2fc1e6
[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.onewire.internal.owserver;
14
15 /**
16  * The {@link OwserverConnectionState} defines the state for connections to owservers
17  *
18  * @author Jan N. Klug - Initial contribution
19  */
20
21 public enum OwserverConnectionState {
22     /**
23      * The {@link OwserverConnection} is being torn down (mostly due to dispose of handler).
24      * No refresh, etc. are possible.
25      */
26     STOPPED,
27     /**
28      * The connection is open.
29      */
30     OPENED,
31     /**
32      * The connection is closed. On next read / write it will be opened.
33      */
34     CLOSED,
35     /**
36      * The connection is erroneous and was closed by the {@link OwserverConnection}. After due wait time, it
37      * is tried to reopen it by a scheduled task of
38      * {@link org.openhab.binding.onewire.internal.handler.OwserverBridgeHandler#reportConnectionState(OwserverConnectionState)}.
39      */
40     FAILED
41 }