Module spring.data.keyvalue
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 TypeMethodDescriptiondoInKeyValue(KeyValueAdapter adapter) Gets called byKeyValueTemplate#execute(KeyValueCallback).
-
Method Details
-
doInKeyValue
Gets called byKeyValueTemplate#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:
-