Class ClearResultsRequest

java.lang.Object
ai.docling.serve.api.clear.request.ClearResultsRequest

public class ClearResultsRequest extends Object
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.
  • Field Details

    • DEFAULT_OLDER_THAN

      public static final Duration 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