public abstract class HttpServerEventsListener
extends io.reactivex.netty.protocol.tcp.server.events.TcpServerEventListener
HttpServer| Constructor and Description |
|---|
HttpServerEventsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onNewRequestReceived()
Event whenever a new request is received by the server.
|
void |
onRequestContentReceived()
Event whenever an HTTP request content is received (an HTTP request can have multiple content chunks, in which
case this event will be fired as many times for the same request).
|
void |
onRequestHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
When request handling completes with an error.
|
void |
onRequestHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
When request handling started.
|
void |
onRequestHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
When request handling completes successfully.
|
void |
onRequestHeadersReceived()
Whenever request headers are received.
|
void |
onRequestReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when the request receive is completed.
|
void |
onResponseWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event when the response write is completed with an error.
|
void |
onResponseWriteStart()
Event when the response write starts.
|
void |
onResponseWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit,
int responseCode)
Event when the response write is completed successfully.
|
onConnectionHandlingFailed, onConnectionHandlingStart, onConnectionHandlingSuccess, onNewClientConnectedonByteRead, onByteWritten, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onCustomEvent, onCustomEvent, onCustomEvent, onCustomEvent, onFlushComplete, onFlushStart, onWriteFailed, onWriteStart, onWriteSuccesspublic void onNewRequestReceived()
public void onRequestHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time between the receiving request and start of processing.timeUnit - Time unit for the duration.public void onRequestHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time between the request processing start and completion.timeUnit - Time unit for the duration.public void onRequestHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Time between the request processing start and failure.timeUnit - Time unit for the duration.throwable - Error that caused the failure.public void onRequestHeadersReceived()
public void onRequestContentReceived()
public void onRequestReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time taken between receiving the request headers and completion of request.timeUnit - Time unit for the duration.public void onResponseWriteStart()
public void onResponseWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit,
int responseCode)
duration - Time taken between write start and completion.timeUnit - Time unit for the duration.responseCode - HTTP response code for the response.public void onResponseWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Time taken between write start and completion.timeUnit - Time unit for the duration.throwable - Error that caused the failure.