-
-
Method Summary
Modifier and Type Method Description abstract BooleanisEnabled(String toggleName, Boolean defaultValue)abstract VariantgetVariant(String toggleName, Variant defaultValue)abstract UnitsetContext(UnleashContext context)Set context and trigger a fetch of the latest toggles immediately and block until the fetch is complete or failed. abstract UnitsetContextWithTimeout(UnleashContext context, Long timeout)Set context and trigger a fetch of the latest toggles asynchronously abstract UnitsetContextAsync(UnleashContext context)Set context and trigger a fetch of the latest toggles asynchronously abstract UnitaddUnleashEventListener(UnleashListener listener)abstract UnitrefreshTogglesNow()This function forces a refresh of the toggles from the server and wait until the refresh is complete or failed. abstract UnitrefreshTogglesNowAsync()This function forces a refresh of the toggles from the server asynchronously using the IO dispatcher. abstract UnitsendMetricsNow()This function forces send metrics to the server and wait until the send is complete or failed. abstract UnitsendMetricsNowAsync()This function forces send metrics to the server asynchronously using the IO dispatcher. abstract BooleanisReady()-
-
Method Detail
-
getVariant
abstract Variant getVariant(String toggleName, Variant defaultValue)
-
setContext
abstract Unit setContext(UnleashContext context)
Set context and trigger a fetch of the latest toggles immediately and block until the fetch is complete or failed.
-
setContextWithTimeout
abstract Unit setContextWithTimeout(UnleashContext context, Long timeout)
Set context and trigger a fetch of the latest toggles asynchronously
-
setContextAsync
abstract Unit setContextAsync(UnleashContext context)
Set context and trigger a fetch of the latest toggles asynchronously
-
addUnleashEventListener
abstract Unit addUnleashEventListener(UnleashListener listener)
-
refreshTogglesNow
abstract Unit refreshTogglesNow()
This function forces a refresh of the toggles from the server and wait until the refresh is complete or failed. Usually, this is done automatically in the background, but you can call this function to force a refresh.
-
refreshTogglesNowAsync
abstract Unit refreshTogglesNowAsync()
This function forces a refresh of the toggles from the server asynchronously using the IO dispatcher. Usually, this is done automatically in the background, but you can call this function to force a refresh.
-
sendMetricsNow
abstract Unit sendMetricsNow()
This function forces send metrics to the server and wait until the send is complete or failed. Usually, this is done automatically in the background, but you can call this function to force a send.
-
sendMetricsNowAsync
abstract Unit sendMetricsNowAsync()
This function forces send metrics to the server asynchronously using the IO dispatcher. Usually, this is done automatically in the background, but you can call this function to force a send.
-
-
-
-