Package com.flagsmith.threads
Class PollingManager
java.lang.Object
com.flagsmith.threads.PollingManager
public class PollingManager extends Object
-
Constructor Summary
Constructors Constructor Description PollingManager(FlagsmithClient client)PollingManager(FlagsmithClient client, Integer interval)Instantiate the polling manager with client and interval for refresh. -
Method Summary
Modifier and Type Method Description BooleangetIsThreadAlive()Get thread status.voidstartPolling()Start polling of the environment in the new thread.voidstopPolling()Stop 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.
-