Class ClearResultsRequest
java.lang.Object
ai.docling.serve.api.clear.request.ClearResultsRequest
Represents a request to clear stale data via the Docling Serve Clear API.
This class provides a mechanism to specify a threshold duration, after which data
is considered stale and eligible for cleanup.
The
olderThen field specifies the duration threshold, with a default
value of DEFAULT_OLDER_THAN, predefined as 1 hour (3600 seconds).
This default can be overridden using the builder or by explicitly passing a custom
duration at runtime.
Instances of this class are immutable and can be created or modified through its builder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classBuilder for creatingClearResultsRequestinstances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationRepresents the default duration used as a threshold for clearing stale results or data in the Docling Serve Clear API. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ClearResultsRequest.Builderbuilder()@NonNull DurationThe duration threshold after which data is considered stale and eligible for cleanup.@NonNull ClearResultsRequest.Builder@NonNull StringtoString()
-
Field Details
-
DEFAULT_OLDER_THAN
Represents the default duration used as a threshold for clearing stale results or data in the Docling Serve Clear API. Results older than this duration are considered stale and may be subject to cleanup. The value is predefined as 1 hour (3600 seconds).
-
-
Method Details