Package com.smeup.kokos.sdk.caller
Class MicroExecutorHTTPClient
java.lang.Object
com.smeup.kokos.sdk.caller.MicroExecutorHTTPClient
- All Implemented Interfaces:
AutoCloseable
- Author:
- mattia.bonardi
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()executeFun(Fun fun, ExecutionContext context, boolean coreResponse) executeFunAsync(Fun fun, ExecutionContext context, boolean coreResponse) static MicroExecutorHTTPClientwithTimeout(Integer timeout)
-
Method Details
-
newClient
-
withTimeout
-
executeFun
public HttpResponse<InputStream> executeFun(Fun fun, ExecutionContext context, boolean coreResponse) throws KokosServiceException - Throws:
KokosServiceException
-
executeFunAsync
public HttpResponse<InputStream> executeFunAsync(Fun fun, ExecutionContext context, boolean coreResponse) throws KokosServiceException - Throws:
KokosServiceException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-