]> git.basschouten.com Git - openhab-addons.git/blob
9d607f76186d17c3379dc78ec1f2bc5d995b55b6
[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.solaredge.internal.command;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jetty.client.HttpClient;
17 import org.eclipse.jetty.client.api.Response.CompleteListener;
18 import org.eclipse.jetty.client.api.Response.ContentListener;
19 import org.eclipse.jetty.client.api.Response.FailureListener;
20 import org.eclipse.jetty.client.api.Response.SuccessListener;
21
22 /**
23  * public interface for all commands
24  *
25  * @author Alexander Friese - initial contribution
26  */
27 @NonNullByDefault
28 public interface SolarEdgeCommand extends SuccessListener, FailureListener, ContentListener, CompleteListener {
29
30     int MAX_RETRIES = 5;
31
32     /**
33      * this method is to be called by the UplinkWebinterface class
34      *
35      * @param asyncclient
36      */
37     void performAction(HttpClient asyncclient);
38 }