Package org.infinispan.marshall.exts
Class ThrowableExternalizer
- java.lang.Object
-
- org.infinispan.marshall.exts.ThrowableExternalizer
-
- All Implemented Interfaces:
Serializable,org.infinispan.commons.marshall.AdvancedExternalizer<Throwable>,org.infinispan.commons.marshall.Externalizer<Throwable>
public class ThrowableExternalizer extends Object implements org.infinispan.commons.marshall.AdvancedExternalizer<Throwable>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ThrowableExternalizerINSTANCE
-
Constructor Summary
Constructors Constructor Description ThrowableExternalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetId()Set<Class<? extends Throwable>>getTypeClasses()ThrowablereadObject(ObjectInput in)voidwriteObject(ObjectOutput out, Throwable t)
-
-
-
Field Detail
-
INSTANCE
public static ThrowableExternalizer INSTANCE
-
-
Method Detail
-
getTypeClasses
public Set<Class<? extends Throwable>> getTypeClasses()
- Specified by:
getTypeClassesin interfaceorg.infinispan.commons.marshall.AdvancedExternalizer<Throwable>
-
getId
public Integer getId()
- Specified by:
getIdin interfaceorg.infinispan.commons.marshall.AdvancedExternalizer<Throwable>
-
writeObject
public void writeObject(ObjectOutput out, Throwable t) throws IOException
- Specified by:
writeObjectin interfaceorg.infinispan.commons.marshall.Externalizer<Throwable>- Throws:
IOException
-
readObject
public Throwable readObject(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceorg.infinispan.commons.marshall.Externalizer<Throwable>- Throws:
IOExceptionClassNotFoundException
-
-