Package growthbook.sdk.java.remoteeval
Class RemoteEvalService
java.lang.Object
growthbook.sdk.java.remoteeval.RemoteEvalService
HTTP client for the remote evaluation endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteEvalService(String apiHost, String clientKey) RemoteEvalService(String apiHost, String clientKey, okhttp3.OkHttpClient okHttpClient, RemoteEvalResponseParser responseParser) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases the HTTP resources owned by this service.fetch(RequestBodyForRemoteEval requestBodyForRemoteEval)
-
Constructor Details
-
RemoteEvalService
-
RemoteEvalService
public RemoteEvalService(String apiHost, String clientKey, @Nullable okhttp3.OkHttpClient okHttpClient, RemoteEvalResponseParser responseParser)
-
-
Method Details
-
close
public void close()Releases the HTTP resources owned by this service. A client passed in by the caller is left untouched; only an internally createdOkHttpClientis shut down. -
fetch
public RemoteEvalResponse fetch(RequestBodyForRemoteEval requestBodyForRemoteEval) throws FeatureFetchException - Throws:
FeatureFetchException
-