Interface ResponseSerializer<T,O>
- Type Parameters:
T
- The type of object to serialize.O
- The output object
- All Superinterfaces:
BiConsumer<T,
,O> Predicate<Object>
- All Known Subinterfaces:
JavaObjectSerializer<T>
,NestedResponseSerializer<T,
O, H>
- All Known Implementing Classes:
ScoredValueSerializer
,ZSetCommonUtils.ZOperationResponse
Base interface for RESP3 serializers.
The interface combines the BiConsumer
and the Predicate
. The former is responsible to serialize the
object in the RESP3 format with a provided buffer allocator. The latter is responsible to check whether the serializer
is capable of handling the object.
- Since:
- 15.0
- Author:
- José Bolina
-
Method Summary
Methods inherited from interface java.util.function.BiConsumer
accept, andThen