]> git.basschouten.com Git - openhab-addons.git/blob
a8081ad71e363c20bd3721a6cdf26c658e24d583
[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.plugwise.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * When there are multiple queued messages, the message priority and date/time determine which message is sent first.
19  *
20  * @author Wouter Born - Initial contribution
21  */
22 @NonNullByDefault
23 public enum PlugwiseMessagePriority {
24
25     /**
26      * Messages caused by Thing channel commands have the highest priority, e.g. to switch power on/off
27      */
28     COMMAND,
29
30     /**
31      * Messages that update the state of Thing channels immediately after a command has been sent.
32      */
33     FAST_UPDATE,
34
35     /**
36      * Messages for normal state updates and Thing discovery. E.g. scheduled tasks that update the state of a
37      * channel.
38      */
39     UPDATE_AND_DISCOVERY
40
41 }