Class UserMarshaller
java.lang.Object
org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller
org.wildfly.clustering.infinispan.marshalling.UserMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamAwareMarshaller
- Direct Known Subclasses:
JBossMarshaller,ProtoStreamMarshaller
A user marshaller that delegates marshalling to a
ByteBufferMarshaller.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionUserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarshallable(Object object) org.infinispan.commons.dataconversion.MediaTypereadObject(InputStream input) intsizeEstimate(Object object) voidwriteObject(Object object, OutputStream output) Methods inherited from class org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromByteBuffer, objectToBuffer, objectToByteBuffer, objectToByteBuffer, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.marshall.Marshaller
initialize, start
-
Constructor Details
-
UserMarshaller
public UserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller)
-
-
Method Details
-
sizeEstimate
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller- Overrides:
sizeEstimatein classAbstractMarshaller
-
isMarshallable
-
readObject
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
- Throws:
IOException
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()
-