Class UserMarshaller
java.lang.Object
org.wildfly.clustering.cache.infinispan.marshalling.AbstractMarshaller
org.wildfly.clustering.cache.infinispan.marshalling.UserMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
A user marshaller that delegates marshalling to a
ByteBufferMarshaller.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionUserMarshaller(Supplier<org.infinispan.commons.dataconversion.MediaType> type, ByteBufferMarshaller marshaller) Creates a user marshaller based on the specified byte buffer marshaller.UserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller) Creates a user marshaller based on the specified byte buffer 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 AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromByteBuffer, objectToBuffer, objectToByteBuffer, objectToByteBuffer, stopMethods inherited from class 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(Supplier<org.infinispan.commons.dataconversion.MediaType> type, ByteBufferMarshaller marshaller) Creates a user marshaller based on the specified byte buffer marshaller.- Parameters:
type- provider of the marshaller media typemarshaller- a byte buffer marshaller
-
UserMarshaller
public UserMarshaller(org.infinispan.commons.dataconversion.MediaType type, ByteBufferMarshaller marshaller) Creates a user marshaller based on the specified byte buffer marshaller.- Parameters:
type- the marshaller media typemarshaller- a byte buffer marshaller
-
-
Method Details
-
sizeEstimate
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller- Overrides:
sizeEstimatein classAbstractMarshaller
-
isMarshallable
-
readObject
- Throws:
IOException
-
writeObject
- Throws:
IOException
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()
-