java.lang.Object
ai.docling.serve.client.operations.ClearOperations
- All Implemented Interfaces:
ai.docling.serve.api.DoclingServeClearApi
public final class ClearOperations
extends Object
implements ai.docling.serve.api.DoclingServeClearApi
Base class for clear API operations. Provides functionality for managing and cleaning up
converters and stale data retained by the service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionai.docling.serve.api.clear.response.ClearResponseclearConverters(ai.docling.serve.api.clear.request.ClearConvertersRequest request) Clears all configured converters using the Docling Serve API.ai.docling.serve.api.clear.response.ClearResponseclearResults(ai.docling.serve.api.clear.request.ClearResultsRequest request) Clears stale results retained by the service, based on the specified threshold duration.
-
Constructor Details
-
ClearOperations
-
-
Method Details
-
clearConverters
public ai.docling.serve.api.clear.response.ClearResponse clearConverters(ai.docling.serve.api.clear.request.ClearConvertersRequest request) Clears all configured converters using the Docling Serve API. This method performs an HTTP GET request to reset or clear any converters that have been configured in the current session. The request may include authentication details required to authorize the operation.- Specified by:
clearConvertersin interfaceai.docling.serve.api.DoclingServeClearApi- Parameters:
request- theClearConvertersRequestobject containing the parameters for the clear operation. This request object must not be null.- Returns:
- a
ClearResponseobject representing the result of the clear operation, including details such as the status of the operation.
-
clearResults
public ai.docling.serve.api.clear.response.ClearResponse clearResults(ai.docling.serve.api.clear.request.ClearResultsRequest request) Clears stale results retained by the service, based on the specified threshold duration. Results older than the duration specified in theClearResultsRequestparameter will be removed.- Specified by:
clearResultsin interfaceai.docling.serve.api.DoclingServeClearApi- Parameters:
request- theClearResultsRequestobject containing the threshold duration for clearing results; must not be null.- Returns:
- a
ClearResponseobject representing the result of the clear operation, including the status of the operation.
-