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.yamahareceiver.internal.protocol;
15 import java.io.IOException;
18 * To offer a method to retrieve a specific state, a protocol part would extend this interface.
20 * @author David Graeff - Initial contribution
22 public interface IStateUpdatable {
24 * Updates the corresponding state. This method is blocking.
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
29 void update() throws IOException, ReceivedMessageParseException;