Class GotLeaderLatchResource
- java.lang.Object
-
- org.kiwiproject.curator.leader.resource.GotLeaderLatchResource
-
@Path("/kiwi/got-leader-latch") @Produces("application/json") public class GotLeaderLatchResource extends ObjectJAX-RS resource providing a single endpoint that allows clients to determine whether this service participates in a leader latch.Simply make a
GET /kiwi/got-leader-latch?request. The question mark is clearly not required but is perhaps a little more fun depending on your sense of humor, i.e. if you think programmer humor is funny or terrible.This resource should, of course, only be registered when the service participates in a leader latch.
-
-
Constructor Summary
Constructors Constructor Description GotLeaderLatchResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegotLeaderLatch()Returns a 204 (No Content) response if available.
-