Package io.helidon.webserver.accesslog
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>
,Supplier<TimeTakenLogEntry>
- Enclosing class:
- TimeTakenLogEntry
public static final class TimeTakenLogEntry.Builder extends AbstractLogEntry.Builder<TimeTakenLogEntry,TimeTakenLogEntry.Builder>
A fluent API builder forTimeTakenLogEntry
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeTakenLogEntry
build()
Build the instance from this builder.TimeTakenLogEntry.Builder
unit(TimeUnit unit)
Configure the time unit to use.-
Methods inherited from class io.helidon.webserver.accesslog.AbstractLogEntry.Builder
lPad, maxLength, noPad, rPad, sanitize
-
-
-
-
Method Detail
-
build
public TimeTakenLogEntry build()
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
unit
public TimeTakenLogEntry.Builder unit(TimeUnit 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
-
-