Interface KeyValueCallback<T>

Type Parameters:
T -

public interface KeyValueCallback<T>
Generic callback interface for code that operates on a KeyValueAdapter. This is particularly useful for delegating code that needs to work closely on the underlying key/value store implementation.
Author:
Christoph Strobl, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets called by KeyValueTemplate#execute(KeyValueCallback).
  • Method Details

    • doInKeyValue

      @Nullable T doInKeyValue(KeyValueAdapter adapter)
      Gets called by KeyValueTemplate#execute(KeyValueCallback). Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain objects.
      Parameters:
      adapter -
      Returns: