Class MapExternalizer

java.lang.Object
org.infinispan.commons.marshall.AbstractExternalizer<Map>
org.infinispan.marshall.exts.MapExternalizer
All Implemented Interfaces:
Serializable, org.infinispan.commons.marshall.AdvancedExternalizer<Map>, org.infinispan.commons.marshall.Externalizer<Map>

public class MapExternalizer extends org.infinispan.commons.marshall.AbstractExternalizer<Map>
Map externalizer for all map implementations except immutable maps and singleton maps, i.e. FastCopyHashMap, HashMap, TreeMap.
Since:
4.0
Author:
Galder ZamarreƱo
See Also:
  • Constructor Details

    • MapExternalizer

      public MapExternalizer()
  • Method Details

    • writeObject

      public void writeObject(ObjectOutput output, Map map) throws IOException
      Throws:
      IOException
    • readObject

      public Map readObject(ObjectInput input) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • getId

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

      public Set<Class<? extends Map>> getTypeClasses()
    • getSupportedPrivateClasses

      public static Set<Class<? extends Map>> getSupportedPrivateClasses()
      Returns an immutable Set that contains all of the private classes (e.g. java.util.Collections$EmptyMap) 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