Class MultiServiceMicroservice
- java.lang.Object
-
- jadex.microservice.examples.multi.MultiServiceMicroservice
-
- All Implemented Interfaces:
IAsyncService
,ISyncService
public class MultiServiceMicroservice extends java.lang.Object implements ISyncService, IAsyncService
This example shows multiple microservices implemented in one Java pojo
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cnt
-
Constructor Summary
Constructors Constructor Description MultiServiceMicroservice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
sayHello(java.lang.String name)
Say hello.IFuture<java.lang.String>
sayMeHello(java.lang.String name)
Say hello method.
-
-
-
Method Detail
-
sayHello
public java.lang.String sayHello(java.lang.String name)
Say hello.- Specified by:
sayHello
in interfaceISyncService
- Parameters:
name
- The name.- Returns:
- The greeting.
-
sayMeHello
public IFuture<java.lang.String> sayMeHello(java.lang.String name)
Say hello method.- Specified by:
sayMeHello
in interfaceIAsyncService
- Parameters:
name
- The name.
-
-