blob: 5f3e2220961880ae77af57a25eed0721b3c80cce [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.sthbnd.http.annotation;
import org.eclipse.sensinact.gateway.generic.Task.CommandType;
import org.eclipse.sensinact.gateway.sthbnd.http.task.HttpChainedTasks;
import org.eclipse.sensinact.gateway.sthbnd.http.task.JSONHttpChainedTasks;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @author <a href="mailto:christophe.munilla@cea.fr">Christophe Munilla</a>
*/
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface RecurrentChainedHttpTask {
Class<? extends HttpChainedTasks> chaining() default JSONHttpChainedTasks.class;
CommandType command() default CommandType.GET;
long period() default 60 * 1000;
long delay() default 1000;
long timeout() default -1;
HttpTaskConfiguration configuration();
HttpChildTaskConfiguration[] chain();
}