]> git.basschouten.com Git - openhab-addons.git/blob
bd11bb72f31af98eac4a00635621d8029a2f569c
[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.easee.internal.handler;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingStatus;
17 import org.openhab.core.thing.ThingStatusDetail;
18
19 /**
20  * functional interface to provide a function to update status of a thing or bridge.
21  *
22  * @author Alexander Friese - initial contribution
23  */
24 @FunctionalInterface
25 @NonNullByDefault
26 public interface StatusHandler {
27     /**
28      * Called from WebInterface#authenticate() to update
29      * the thing status because updateStatus is protected.
30      *
31      * @param status Thing status
32      * @param statusDetail Thing status detail
33      * @param description Thing status description
34      */
35     void updateStatusInfo(ThingStatus status, ThingStatusDetail statusDetail, String description);
36 }