Package codes.grow.packages.loki
Class LiveTailOptions.Builder
java.lang.Object
codes.grow.packages.loki.LiveTailOptions.Builder
- Enclosing class:
LiveTailOptions
Builder of
LiveTailOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets the server-side delay (0–5 s).limit(int limit) Sets the maximum number of replayed entries.onDropped(Consumer<List<DroppedEntry>> onDropped) Sets the dropped-entries callback.onError(Consumer<LokiException> onError) Sets the error callback.Replays entries from this time before streaming live ones (default: now, live only).
-
Method Details
-
start
Replays entries from this time before streaming live ones (default: now, live only).- Parameters:
start- start- Returns:
- this builder
-
limit
Sets the maximum number of replayed entries.- Parameters:
limit- limit (≥ 1)- Returns:
- this builder
-
delayFor
Sets the server-side delay (0–5 s).- Parameters:
delayFor- delay- Returns:
- this builder
-
onDropped
Sets the dropped-entries callback.- Parameters:
onDropped- callback- Returns:
- this builder
-
onError
Sets the error callback.- Parameters:
onError- callback- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-