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

com.github.dabump.cbee.service.CircuitBreakerEndpoint Maven / Gradle / Ivy

package com.github.dabump.cbee.service;

import com.github.dabump.cbee.circuitbreaker.CircuitBreakerImpl;
import com.github.dabump.cbee.circuitbreaker.CircuitBreakerRegister;
import lombok.extern.java.Log;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.util.Collection;

/**
 * @author Martin Coetzee ([email protected])
 */
@Path("/circuitbreaker")
@Produces({"application/json"})
@Consumes({"application/json"})
@Log
public class CircuitBreakerEndpoint {

    @GET
    @Path("/")
    public Collection getReport() {
        return CircuitBreakerRegister.getMetrics();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy