Class EhcacheSerializer

java.lang.Object
com.broadleafcommerce.common.extension.cache.ehcache.EhcacheSerializer
All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<Object>

public class EhcacheSerializer extends Object implements org.ehcache.spi.serialization.Serializer<Object>
Custom Ehcache 3 Serializer leveraging Apache Fury for high-performance, compact serialization.
  • Constructor Details

    • EhcacheSerializer

      public EhcacheSerializer(ClassLoader classLoader)
  • Method Details

    • serialize

      public ByteBuffer serialize(Object object) throws org.ehcache.spi.serialization.SerializerException
      Specified by:
      serialize in interface org.ehcache.spi.serialization.Serializer<Object>
      Throws:
      org.ehcache.spi.serialization.SerializerException
    • read

      public Object read(ByteBuffer binary) throws ClassNotFoundException, org.ehcache.spi.serialization.SerializerException
      Specified by:
      read in interface org.ehcache.spi.serialization.Serializer<Object>
      Throws:
      ClassNotFoundException
      org.ehcache.spi.serialization.SerializerException
    • equals

      public boolean equals(Object object, ByteBuffer binary) throws ClassNotFoundException, org.ehcache.spi.serialization.SerializerException
      Specified by:
      equals in interface org.ehcache.spi.serialization.Serializer<Object>
      Throws:
      ClassNotFoundException
      org.ehcache.spi.serialization.SerializerException