Package com.smeup.kokos.sdk.caller
Class ServiceCaller
java.lang.Object
com.smeup.kokos.sdk.caller.ServiceCaller
- All Implemented Interfaces:
IServiceCaller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeServicePackage(String servicePackage) Change the package of servicesvoiddispatch(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse) voiddispatchAsync(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse) voiddispatchWithTimeout(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse, Integer timeout) protected voidexecuteService(Class<? extends KokosService> serviceClass, Fun fun, ExecutionContext context, OutputStream out, SmeupDataStructurePrinter printer)
-
Field Details
-
DEFAULT_SERVICES_PACKAGE
- See Also:
-
KOKOS_PROXY_SERVICE
- See Also:
-
-
Constructor Details
-
ServiceCaller
public ServiceCaller()
-
-
Method Details
-
dispatch
public void dispatch(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse) throws Exception - Specified by:
dispatchin interfaceIServiceCaller- Throws:
Exception
-
dispatchWithTimeout
public void dispatchWithTimeout(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse, Integer timeout) throws Exception - Specified by:
dispatchWithTimeoutin interfaceIServiceCaller- Throws:
Exception
-
dispatchAsync
public void dispatchAsync(Fun fun, ExecutionContext context, OutputStream out, boolean coreResponse) throws Exception - Specified by:
dispatchAsyncin interfaceIServiceCaller- Throws:
Exception
-
changeServicePackage
Change the package of services- Specified by:
changeServicePackagein interfaceIServiceCaller- Parameters:
servicePackage- servicePackage
-
executeService
protected void executeService(Class<? extends KokosService> serviceClass, Fun fun, ExecutionContext context, OutputStream out, SmeupDataStructurePrinter printer) throws Exception - Throws:
Exception
-