jadex.micro.testcases.longcall.ITestService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-micro Show documentation
Show all versions of jadex-applications-micro Show documentation
The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.
package jadex.micro.testcases.longcall;
import jadex.bridge.service.annotation.Timeout;
import jadex.commons.future.IFuture;
import jadex.commons.future.IIntermediateFuture;
import jadex.commons.future.IPullIntermediateFuture;
import jadex.commons.future.IPullSubscriptionIntermediateFuture;
import jadex.commons.future.ISubscriptionIntermediateFuture;
import jadex.commons.future.ITerminableFuture;
/**
* Test interface that has a timeout annotation specifying
* the default timeout. In the test the timeout is provided
* by the caller via the non-functional properties in the
* ServiceCall object (CallLocal).
*/
public interface ITestService
{
/**
* A test method.
*/
@Timeout(2000)
public IFuture method1();
/**
* A test method.
*/
@Timeout(2000)
public ITerminableFuture method2();
/**
* A test method.
*/
@Timeout(2000)
public IIntermediateFuture method3();
/**
* A test method.
*/
@Timeout(2000)
public ISubscriptionIntermediateFuture method4();
/**
* A test method.
*/
@Timeout(2000)
public IPullIntermediateFuture method5();
/**
* A test method.
*/
@Timeout(2000)
public IPullSubscriptionIntermediateFuture method6();
}