]> git.basschouten.com Git - openhab-addons.git/blob
1ea94729ea74e7bd92567f5eb23f5d242ad84179
[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.yamahareceiver.internal.protocol;
14
15 import java.io.IOException;
16
17 /**
18  * To offer a method to retrieve a specific state, a protocol part would extend this interface.
19  *
20  * @author David Graeff - Initial contribution
21  */
22 public interface IStateUpdatable {
23     /**
24      * Updates the corresponding state. This method is blocking.
25      *
26      * @throws IOException If the device is offline this exception will be thrown
27      * @throws ReceivedMessageParseException If the response cannot be parsed correctly this exception is thrown
28      */
29     void update() throws IOException, ReceivedMessageParseException;
30 }