Class OSONDeserializer<T>

java.lang.Object
com.oracle.spring.json.kafka.OSONDeserializer<T>
Type Parameters:
T - deserialization type
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.serialization.Deserializer<T>

public class OSONDeserializer<T> extends Object implements org.apache.kafka.common.serialization.Deserializer<T>
The OSONDeserializer converts JSONB byte arrays to java objects.
  • Constructor Details

    • OSONDeserializer

      public OSONDeserializer(com.oracle.spring.json.jsonb.JSONB jsonb, Class<T> clazz)
  • Method Details

    • deserialize

      public T deserialize(String s, byte[] bytes)
      Specified by:
      deserialize in interface org.apache.kafka.common.serialization.Deserializer<T>