io.quarkus.smallrye.faulttolerance.runtime.QuarkusExistingCircuitBreakerNames Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-smallrye-fault-tolerance Show documentation
Show all versions of quarkus-smallrye-fault-tolerance Show documentation
Build fault-tolerant network services
package io.quarkus.smallrye.faulttolerance.runtime;
import java.util.Set;
import jakarta.annotation.Priority;
import jakarta.enterprise.inject.Alternative;
import jakarta.inject.Singleton;
import io.smallrye.faulttolerance.ExistingCircuitBreakerNames;
@Singleton
@Alternative
@Priority(1)
public class QuarkusExistingCircuitBreakerNames implements ExistingCircuitBreakerNames {
private Set names;
void init(Set names) {
this.names = names;
}
@Override
public boolean contains(String name) {
return names.contains(name);
}
}