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
public class UserMarshaller extends AbstractMarshaller
A user marshaller that delegates marshalling to aByteBufferMarshaller.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description UserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMarshallable(Object object)org.infinispan.commons.dataconversion.MediaTypemediaType()ObjectreadObject(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, stop
-
-
-
-
Constructor Detail
-
UserMarshaller
public UserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller)
-
-
Method Detail
-
sizeEstimate
public int sizeEstimate(Object object)
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller- Overrides:
sizeEstimatein classAbstractMarshaller
-
isMarshallable
public boolean isMarshallable(Object object)
-
readObject
public Object readObject(InputStream input) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
public void writeObject(Object object, OutputStream output) throws IOException
- Throws:
IOException
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()
-
-