Package org.infinispan.marshall.exts
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapExternalizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetId()static Set<Class<? extends Map>>getSupportedPrivateClasses()Returns an immutable Set that contains all of the private classes (e.g.Set<Class<? extends Map>>getTypeClasses()MapreadObject(ObjectInput input)voidwriteObject(ObjectOutput output, Map map)
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, Map map) throws IOException
- Throws:
IOException
-
readObject
public Map readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
getId
public Integer getId()
-
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
-
-