Class TimeTakenLogEntry.Builder
java.lang.Object
io.helidon.webserver.accesslog.AbstractLogEntry.Builder<TimeTakenLogEntry, TimeTakenLogEntry.Builder>
io.helidon.webserver.accesslog.TimeTakenLogEntry.Builder
- All Implemented Interfaces:
Builder<TimeTakenLogEntry.Builder, TimeTakenLogEntry>, Supplier<TimeTakenLogEntry>
- Enclosing class:
TimeTakenLogEntry
public static final class TimeTakenLogEntry.Builder
extends AbstractLogEntry.Builder<TimeTakenLogEntry, TimeTakenLogEntry.Builder>
A fluent API builder for
TimeTakenLogEntry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Configure the time unit to use.Methods inherited from class AbstractLogEntry.Builder
lPad, maxLength, noPad, rPad, sanitizeModifier and TypeMethodDescriptionlPad(int length) Apply left padding to fill the defined length.maxLength(int maxLength) Configure maximal length of the output written.noPad()Apply no padding on the output.rPad(int length) Apply right padding to fill the defined length.sanitize(boolean sanitize) Configure output sanitization.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault TimeTakenLogEntryget()default TimeTakenLogEntry.Builderidentity()Instance of this builder as the correct type.default TimeTakenLogEntry.Builderupdate(Consumer<TimeTakenLogEntry.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
unit
Configure the time unit to use. Defaults toTimeUnit.MICROSECONDS.- Parameters:
unit- unit to use when writing time taken to Access log- Returns:
- updated builder instance
-