All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.smallrye.faulttolerance.runtime.QuarkusExistingCircuitBreakerNames Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy