Class LogTailOptions.Builder
java.lang.Object
codes.grow.packages.openobserve.logs.LogTailOptions.Builder
- Enclosing class:
LogTailOptions
Builder of
LogTailOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets a SQL condition such asmatch_all('error').Sets the poll interval.Sets the callback for failed polls (tailing continues).Sets the re-read window that catches late rows (duplicates are dropped).pageSize(int pageSize) Sets the rows per poll request.Sets the earliest delivered row time.streamType(StreamType streamType) Sets the stream type.
-
Method Details
-
filter
Sets a SQL condition such asmatch_all('error').- Parameters:
filter- condition- Returns:
- this builder
-
start
Sets the earliest delivered row time.- Parameters:
start- start- Returns:
- this builder
-
interval
Sets the poll interval.- Parameters:
interval- interval- Returns:
- this builder
-
overlap
Sets the re-read window that catches late rows (duplicates are dropped).- Parameters:
overlap- overlap- Returns:
- this builder
-
pageSize
Sets the rows per poll request.- Parameters:
pageSize- page size- Returns:
- this builder
-
streamType
Sets the stream type.- Parameters:
streamType- stream type- Returns:
- this builder
-
onError
Sets the callback for failed polls (tailing continues).- Parameters:
onError- callback- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-