Package com.flagsmith.threads
Class PollingManager
java.lang.Object
com.flagsmith.threads.PollingManager
-
Constructor Summary
ConstructorsConstructorDescriptionPollingManager(FlagsmithClient client) PollingManager(FlagsmithClient client, Integer interval) Instantiate the polling manager with client and interval for refresh. -
Method Summary
Modifier and TypeMethodDescriptionGet thread status.voidStart polling of the environment in the new thread.voidStop polling of the new environment.
-
Constructor Details
-
PollingManager
-
PollingManager
Instantiate the polling manager with client and interval for refresh.- Parameters:
client- client objectinterval- interval seconds
-
-
Method Details
-
startPolling
public void startPolling()Start polling of the environment in the new thread. -
stopPolling
public void stopPolling()Stop polling of the new environment. -
getIsThreadAlive
Get thread status.
-