Interface MeilisearchCallback<T>

Type Parameters:
T - return type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MeilisearchCallback<T>
Supported low-level, SDK-coupled callback executed by MeilisearchTemplate.execute(MeilisearchCallback). Prefer MeilisearchOperations and repositories for regular mapped application access.

The callback supplies native requests and interprets SDK results. The template does not automatically map entities, wait for task completion, or validate completed task status. SDK MeilisearchException failures escaping the callback are translated by the template; direct SDK calls outside the template do not receive that translation.

Author:
Junghoon Ban
  • Method Summary

    Modifier and Type
    Method
    Description
    doWithClient(com.meilisearch.sdk.Client client)
    Execute native SDK work using the configured client.
  • Method Details

    • doWithClient

      T doWithClient(com.meilisearch.sdk.Client client) throws com.meilisearch.sdk.exceptions.MeilisearchException
      Execute native SDK work using the configured client. SDK API and model compatibility remain the caller's concern.
      Parameters:
      client - the configured SDK client
      Returns:
      the callback result
      Throws:
      com.meilisearch.sdk.exceptions.MeilisearchException - an SDK failure to be translated by the calling template