Package 

Interface Unleash

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public interface Unleash
     implements Closeable
                        
    • Method Detail

      • 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.

      • 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.