Class DelegatingUserMarshaller
java.lang.Object
org.infinispan.marshall.core.impl.DelegatingUserMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller
public class DelegatingUserMarshaller
extends Object
implements org.infinispan.commons.marshall.Marshaller
A delegate
Marshaller implementation for the user marshaller that ensures that the Marshaller.start() and
Marshaller.stop() of the configured marshaller are called and logged as required.- Since:
- 12.0
- Author:
- Ryan Emerson
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingUserMarshaller(org.infinispan.commons.marshall.Marshaller marshaller) -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.marshall.BufferSizePredictororg.infinispan.commons.marshall.Marshallervoidinitialize(org.infinispan.commons.configuration.ClassAllowList classAllowList) booleanorg.infinispan.commons.dataconversion.MediaTypeobjectFromByteBuffer(byte[] buf) objectFromByteBuffer(byte[] buf, int offset, int length) org.infinispan.commons.io.ByteBufferbyte[]objectToByteBuffer(Object obj) byte[]objectToByteBuffer(Object obj, int estimatedSize) voidstart()voidstop()
-
Constructor Details
-
DelegatingUserMarshaller
public DelegatingUserMarshaller(org.infinispan.commons.marshall.Marshaller marshaller)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.marshall.Marshaller
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.marshall.Marshaller
-
initialize
public void initialize(org.infinispan.commons.configuration.ClassAllowList classAllowList) - Specified by:
initializein interfaceorg.infinispan.commons.marshall.Marshaller
-
objectToByteBuffer
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException - Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionInterruptedException
-
objectToByteBuffer
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionInterruptedException
-
objectFromByteBuffer
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException - Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectToBuffer
public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o) throws IOException, InterruptedException - Specified by:
objectToBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionInterruptedException
-
isMarshallable
- Specified by:
isMarshallablein interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
Exception
-
getBufferSizePredictor
- Specified by:
getBufferSizePredictorin interfaceorg.infinispan.commons.marshall.Marshaller
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.Marshaller
-
getDelegate
public org.infinispan.commons.marshall.Marshaller getDelegate()
-