All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.resp.serialization.NestedResponseSerializer Maven / Gradle / Ivy

There is a newer version: 15.1.4.Final
Show newest version
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