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

com.kmwllc.lucille.endpoints.ReadinessResource Maven / Gradle / Ivy

The newest version!
package com.kmwllc.lucille.endpoints;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Lucille Readiness Health Check Endpoint:
 *
 * - endpoint: '/readyz'
 *   - GET: lucille readiness status (always OK)
 */
@Path("/readyz")
@Produces(MediaType.APPLICATION_JSON)
public class ReadinessResource {
  private static final Logger log = LoggerFactory.getLogger(ReadinessResource.class);

  public ReadinessResource() {
    super();
  }

  @GET
  public Response isReady() {
    return Response.ok().build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy