Class LeaderResource


  • @Path("/kiwi/leader-latch")
    @Produces("application/json")
    public class LeaderResource
    extends Object
    JAX-RS resource providing endpoints for checking leadership and participant information.
    • Method Detail

      • hasLeadership

        @GET
        @Path("/leader")
        public javax.ws.rs.core.Response hasLeadership()
        Checks whether this service is the latch leader.
        Returns:
        the JSON Response
      • getLatchState

        @GET
        @Path("/latch")
        public javax.ws.rs.core.Response getLatchState()
        Get information about the leader latch that this service participates in.
        Returns:
        the JSON Response