Package com.configcat
Class ConfigService
- java.lang.Object
-
- com.configcat.ConfigService
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ConfigService extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description ConfigService(java.lang.String sdkKey, com.configcat.ConfigFetcher configFetcher, PollingMode pollingMode, ConfigCache cache, com.configcat.ConfigCatLogger logger, boolean offline, ConfigCatHooks configCatHooks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.util.concurrent.CompletableFuture<com.configcat.SettingResult>getSettings()booleanisOffline()java.util.concurrent.CompletableFuture<RefreshResult>refresh()voidsetOffline()voidsetOnline()
-
-
-
Constructor Detail
-
ConfigService
public ConfigService(java.lang.String sdkKey, com.configcat.ConfigFetcher configFetcher, PollingMode pollingMode, ConfigCache cache, com.configcat.ConfigCatLogger logger, boolean offline, ConfigCatHooks configCatHooks)
-
-
Method Detail
-
refresh
public java.util.concurrent.CompletableFuture<RefreshResult> refresh()
-
getSettings
public java.util.concurrent.CompletableFuture<com.configcat.SettingResult> getSettings()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
setOnline
public void setOnline()
-
setOffline
public void setOffline()
-
isOffline
public boolean isOffline()
-
-