Package io.fusionauth.http.server
Interface Instrumenter
- All Known Implementing Classes:
CountingInstrumenter
public interface Instrumenter
A generic interface that allows the HTTP Server to be instrumented.
- Author:
- Brian Pontarelli
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a new client connection is accepted.voidCalled when a client sends in a bad HTTP request.voidCalled when a client sends in chunked request data.voidCalled when a client sends in chunked request data.voidCalled when a connection is closed due to an issue or a timeout.voidreadFromClient(long bytes) Called when bytes are read from a client.voidCalled when the server is started.voidwroteToClient(long bytes) Called when bytes are written to a client.
-
Method Details
-
acceptedConnection
void acceptedConnection()Called when a new client connection is accepted. -
badRequest
void badRequest()Called when a client sends in a bad HTTP request. -
chunkedRequest
void chunkedRequest()Called when a client sends in chunked request data. -
chunkedResponse
void chunkedResponse()Called when a client sends in chunked request data. -
connectionClosed
void connectionClosed()Called when a connection is closed due to an issue or a timeout. -
readFromClient
void readFromClient(long bytes) Called when bytes are read from a client.- Parameters:
bytes- The number of bytes read.
-
serverStarted
void serverStarted()Called when the server is started. -
wroteToClient
void wroteToClient(long bytes) Called when bytes are written to a client.- Parameters:
bytes- The number of bytes written.
-