Class CollectionExternalizer

java.lang.Object
org.infinispan.marshall.exts.CollectionExternalizer
All Implemented Interfaces:
Serializable, org.infinispan.commons.marshall.AdvancedExternalizer<Collection>, org.infinispan.commons.marshall.Externalizer<Collection>

public class CollectionExternalizer extends Object implements org.infinispan.commons.marshall.AdvancedExternalizer<Collection>
See Also:
  • Constructor Details

    • CollectionExternalizer

      public CollectionExternalizer()
  • Method Details

    • writeObject

      public void writeObject(ObjectOutput output, Collection collection) throws IOException
      Specified by:
      writeObject in interface org.infinispan.commons.marshall.Externalizer<Collection>
      Throws:
      IOException
    • readObject

      public Collection readObject(ObjectInput input) throws IOException, ClassNotFoundException
      Specified by:
      readObject in interface org.infinispan.commons.marshall.Externalizer<Collection>
      Throws:
      IOException
      ClassNotFoundException
    • getId

      public Integer getId()
      Specified by:
      getId in interface org.infinispan.commons.marshall.AdvancedExternalizer<Collection>
    • getTypeClasses

      public Set<Class<? extends Collection>> getTypeClasses()
      Specified by:
      getTypeClasses in interface org.infinispan.commons.marshall.AdvancedExternalizer<Collection>
    • getSupportedPrivateClasses

      public static Set<Class<Collection>> getSupportedPrivateClasses()
      Returns an immutable Set that contains all of the private classes (e.g. java.util.Collections$EmptyList) that are supported by this Externalizer. This method is to be used by external sources if these private classes need additional processing to be available.
      Returns:
      immutable set of the private classes
    • getPrivateSingletonSetClass

      public static Class<Collection> getPrivateSingletonSetClass()
    • getPrivateSynchronizedSetClass

      public static Class<Collection> getPrivateSynchronizedSetClass()