Class UnleashService

  • All Implemented Interfaces:
    io.getunleash.Unleash

    @ApplicationScoped
    public class UnleashService
    extends Object
    implements io.getunleash.Unleash
    • Constructor Detail

      • UnleashService

        public UnleashService()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(String toggleName)
        Specified by:
        isEnabled in interface io.getunleash.Unleash
      • isEnabled

        public boolean isEnabled​(String toggleName,
                                 boolean defaultSetting)
        Specified by:
        isEnabled in interface io.getunleash.Unleash
      • isEnabled

        public boolean isEnabled​(String toggleName,
                                 io.getunleash.UnleashContext unleashContext,
                                 boolean defaultSetting)
        Specified by:
        isEnabled in interface io.getunleash.Unleash
      • isEnabled

        public boolean isEnabled​(String toggleName,
                                 BiFunction<String,​io.getunleash.UnleashContext,​Boolean> fallbackAction)
        Specified by:
        isEnabled in interface io.getunleash.Unleash
      • isEnabled

        public boolean isEnabled​(String toggleName,
                                 io.getunleash.UnleashContext context,
                                 BiFunction<String,​io.getunleash.UnleashContext,​Boolean> fallbackAction)
        Specified by:
        isEnabled in interface io.getunleash.Unleash
      • getVariant

        public io.getunleash.Variant getVariant​(String toggleName,
                                                io.getunleash.UnleashContext context)
        Specified by:
        getVariant in interface io.getunleash.Unleash
      • getVariant

        public io.getunleash.Variant getVariant​(String toggleName,
                                                io.getunleash.UnleashContext context,
                                                io.getunleash.Variant defaultValue)
        Specified by:
        getVariant in interface io.getunleash.Unleash
      • getVariant

        public io.getunleash.Variant getVariant​(String toggleName)
        Specified by:
        getVariant in interface io.getunleash.Unleash
      • getVariant

        public io.getunleash.Variant getVariant​(String toggleName,
                                                io.getunleash.Variant defaultValue)
        Specified by:
        getVariant in interface io.getunleash.Unleash
      • getFeatureToggleNames

        @Deprecated
        public List<String> getFeatureToggleNames()
        Deprecated.
        Specified by:
        getFeatureToggleNames in interface io.getunleash.Unleash
      • more

        public io.getunleash.MoreOperations more()
        Specified by:
        more in interface io.getunleash.Unleash