Interface Strategy


@API(status=STABLE)
public interface Strategy
A strategy is glue between Logbook integrations and the Sink. The lifecycle of a request-response pair will invoke methods in the following order:
  1. process(HttpRequest)
  2. write(Precorrelation, HttpRequest, Sink)
  3. process(HttpRequest, HttpResponse)
  4. write(Correlation, HttpRequest, HttpResponse, Sink)
At each of those points in time different options are available, e.g. to defer logging, apply conditions or even modify something. Strategy pattern