Class ElapseTimeElementBuilder

java.lang.Object
io.micronaut.http.server.netty.handler.accesslog.element.ElapseTimeElementBuilder
All Implemented Interfaces:
Ordered, LogElementBuilder

public final class ElapseTimeElementBuilder extends Object implements LogElementBuilder
Builder for ElapseTimeElement.
Since:
2.0
Author:
croudet
  • Constructor Details

    • ElapseTimeElementBuilder

      public ElapseTimeElementBuilder()
  • Method Details

    • build

      public LogElement build(String token, String param)
      Description copied from interface: LogElementBuilder
      Builds the log element for the specified token. It should return null it the token is not supported.
      Specified by:
      build in interface LogElementBuilder
      Parameters:
      token - The log element marker.
      param - An optional paramter.
      Returns:
      A LogElement or null if not supported by the builder.