public class HealthCheckEndpoint
extends java.lang.Object
implements io.reactivex.netty.protocol.http.server.RequestHandler<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf>
RequestHandler to provide health status over HTTP.
This endpoint does NOT validate whether the passed request URI is actually of healthcheck or not. It assumes
that it is used by a higher level router that makes appropriate decisions of which handler to call based on the URI.| Constructor and Description |
|---|
HealthCheckEndpoint(netflix.karyon.health.HealthCheckHandler healthCheckHandler) |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Void> |
handle(io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> request,
io.reactivex.netty.protocol.http.server.HttpServerResponse<io.netty.buffer.ByteBuf> response) |
@Inject public HealthCheckEndpoint(netflix.karyon.health.HealthCheckHandler healthCheckHandler)
public rx.Observable<java.lang.Void> handle(io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> request,
io.reactivex.netty.protocol.http.server.HttpServerResponse<io.netty.buffer.ByteBuf> response)
handle in interface io.reactivex.netty.channel.Handler<io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf>,io.reactivex.netty.protocol.http.server.HttpServerResponse<io.netty.buffer.ByteBuf>>handle in interface io.reactivex.netty.protocol.http.server.RequestHandler<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf>