![JAR search and dependency download from the Maven repository](/logo.png)
org.infinispan.server.resp.serialization.NestedResponseSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-server-resp Show documentation
Show all versions of infinispan-server-resp Show documentation
Infinispan Resp Protocol Server
package org.infinispan.server.resp.serialization;
import org.infinispan.server.resp.ByteBufPool;
import org.infinispan.util.function.TriConsumer;
/**
* Serializes a nested Java object into the correct RESP3 representation.
*
*
* A nested object is one composed of other RESP3 elements. For example, an array or a map are nested objects. There is
* no limitation regarding the number of nested elements that can exist. Therefore, to aid during serialization, a caller
* can provide hints about the types of inner elements.
*
*
* @param The generic type of the Java object the serializer handles.
* @param The generic type of hints the serializer accepts.
* @author José Bolina
*/
interface NestedResponseSerializer
extends ResponseSerializer, TriConsumer {
@Override
default void accept(T t, ByteBufPool byteBufPool) {
throw new IllegalStateException("Nested response without serialization hints");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy