Package com.smeup.kokos.sdk.caller
Class ServiceCallerV3
java.lang.Object
com.smeup.kokos.sdk.caller.ServiceCallerV3
- All Implemented Interfaces:
IServiceCaller
- Author:
- mattia.bonardi, andrea.agosti
-
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)
-
Constructor Details
-
ServiceCallerV3
public ServiceCallerV3()
-
-
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) - Specified by:
dispatchAsyncin interfaceIServiceCaller
-
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
-