io.getunleash.event.ToggleEvaluated Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-client-java Show documentation
Show all versions of unleash-client-java Show documentation
A client library for Unleash
The newest version!
package io.getunleash.event;
public class ToggleEvaluated implements UnleashEvent {
private final String toggleName;
private final boolean enabled;
public ToggleEvaluated(String toggleName, boolean enabled) {
this.toggleName = toggleName;
this.enabled = enabled;
}
public String getToggleName() {
return toggleName;
}
public boolean isEnabled() {
return enabled;
}
@Override
public void publishTo(UnleashSubscriber unleashSubscriber) {
unleashSubscriber.toggleEvaluated(this);
}
@Override
public String toString() {
return "ToggleEvaluated: " + toggleName + "=" + enabled;
}
}