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

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

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

import jakarta.ws.rs.Path;
import jakarta.ws.rs.GET;
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 Liveness Health Check Endpoint:
 *
 * - endpoint: '/livez'
 *   - GET: lucille liveness status (always OK)
 */
@Path("/livez")
@Produces(MediaType.APPLICATION_JSON)
public class LivenessResource {

  private static final Logger log = LoggerFactory.getLogger(LivenessResource.class);


  public LivenessResource() {
    super();
  }


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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy