Class CollectionExternalizer

java.lang.Object
org.infinispan.tools.store.migrator.marshaller.common.AbstractMigratorExternalizer<Collection>
org.infinispan.tools.store.migrator.marshaller.infinispan9.CollectionExternalizer
All Implemented Interfaces:
Serializable, AdvancedExternalizer<Collection>, Externalizer<Collection>

public class CollectionExternalizer extends AbstractMigratorExternalizer<Collection>
See Also:
  • Constructor Details

    • CollectionExternalizer

      public CollectionExternalizer()
  • Method Details

    • readObject

      public Collection readObject(ObjectInput input) throws IOException, ClassNotFoundException
      Description copied from interface: Externalizer
      Read an instance from the stream. The instance will have been written by the Externalizer.writeObject(ObjectOutput, Object) method. Implementations are free to create instances of the object read from the stream in any way that they feel like. This could be via constructor, factory or reflection.
      Parameters:
      input - the object input to read from
      Returns:
      the object instance
      Throws:
      IOException - if an I/O error occurs
      ClassNotFoundException - if a class could not be found
    • getClasses

      public static Set<Class<? extends Collection>> getClasses()
    • 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
    • getPrivateSynchronizedListClass

      public static Class<Collection> getPrivateSynchronizedListClass()
    • getPrivateSingletonSetClass

      public static Class<Collection> getPrivateSingletonSetClass()
    • getPrivateSynchronizedSetClass

      public static Class<Collection> getPrivateSynchronizedSetClass()