Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.netflix.adminresources.resources;
 
 
 import javax.ws.rs.GET;

Author(s):
Nitesh Kant
@Path("/healthcheck")
public class HealthcheckResource {
    @Inject(optional = true)
    @GET
    public Response doHealthCheck() {
        if (null != ) {
            try {
                int status = .invokeCheck();
                return Response.status(status).build();
            } catch (TimeoutException e) {
                return Response.status(..).build();
            }
        } else {
            return Response.status(..).build();
        }
    }
New to GrepCode? Check out our FAQ X