Package org.infinispan.marshall.exts
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionExternalizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetId()static Class<Collection>getPrivateSingletonSetClass()static Class<Collection>getPrivateSynchronizedSetClass()static Set<Class<Collection>>getSupportedPrivateClasses()Returns an immutable Set that contains all of the private classes (e.g.Set<Class<? extends Collection>>getTypeClasses()CollectionreadObject(ObjectInput input)voidwriteObject(ObjectOutput output, Collection collection)
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, Collection collection) throws IOException
- Specified by:
writeObjectin interfaceorg.infinispan.commons.marshall.Externalizer<Collection>- Throws:
IOException
-
readObject
public Collection readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceorg.infinispan.commons.marshall.Externalizer<Collection>- Throws:
IOExceptionClassNotFoundException
-
getId
public Integer getId()
- Specified by:
getIdin interfaceorg.infinispan.commons.marshall.AdvancedExternalizer<Collection>
-
getTypeClasses
public Set<Class<? extends Collection>> getTypeClasses()
- Specified by:
getTypeClassesin interfaceorg.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()
-
-