Package growthbook.sdk.java.repository
Class NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder
java.lang.Object
growthbook.sdk.java.repository.NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder
- Enclosing class:
- NativeJavaGbFeatureRepository
public static class NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
encryptionKey
(String encryptionKey) isCacheDisabled
(Boolean isCacheDisabled) refreshStrategy
(FeatureRefreshStrategy refreshStrategy) requestBodyForRemoteEval
(RequestBodyForRemoteEval requestBodyForRemoteEval) swrTtlSeconds
(Integer swrTtlSeconds) toString()
-
Method Details
-
apiHost
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder apiHost(@Nullable String apiHost) - Parameters:
apiHost
- The GrowthBook API host (default: ...)- Returns:
this
.
-
clientKey
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder clientKey(String clientKey) - Parameters:
clientKey
- Your client ID, e.g. sdk-abc123- Returns:
this
.
-
encryptionKey
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder encryptionKey(@Nullable String encryptionKey) - Parameters:
encryptionKey
- optional key for decrypting encrypted payload- Returns:
this
.
-
refreshStrategy
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder refreshStrategy(@Nullable FeatureRefreshStrategy refreshStrategy) - Returns:
this
.
-
swrTtlSeconds
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder swrTtlSeconds(@Nullable Integer swrTtlSeconds) - Parameters:
swrTtlSeconds
- How often the cache should be invalidated when usingFeatureRefreshStrategy.STALE_WHILE_REVALIDATE
(default: 60)- Returns:
this
.
-
isCacheDisabled
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder isCacheDisabled(@Nullable Boolean isCacheDisabled) - Returns:
this
.
-
requestBodyForRemoteEval
public NativeJavaGbFeatureRepository.NativeJavaGbFeatureRepositoryBuilder requestBodyForRemoteEval(@Nullable RequestBodyForRemoteEval requestBodyForRemoteEval) - Returns:
this
.
-
build
-
toString
-