Interface Instrumenter

All Known Implementing Classes:
CountingInstrumenter, ThreadSafeCountingInstrumenter

public interface Instrumenter
A generic interface that allows the HTTP Server to be instrumented.
Author:
Brian Pontarelli
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a new client connection is accepted.
    void
    Called when a client sends in a bad HTTP request.
    void
    Called when a client sends in chunked request data.
    void
    Called when a client sends in chunked request data.
    void
    Called when a connection is closed due to an issue or a timeout.
    void
    readFromClient(long bytes)
    Called when bytes are read from a client.
    void
    Called when the server is started.
    void
    Signals that a virtual thread has exited.
    void
    Signals that a virtual thread has started.
    void
    wroteToClient(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.
    • threadExited

      void threadExited()
      Signals that a virtual thread has exited.
    • threadStarted

      void threadStarted()
      Signals that a virtual thread has started.
    • wroteToClient

      void wroteToClient(long bytes)
      Called when bytes are written to a client.
      Parameters:
      bytes - The number of bytes written.