Class JavaSerializationMarshaller
java.lang.Object
org.infinispan.commons.marshall.AbstractMarshaller
org.infinispan.commons.marshall.JavaSerializationMarshaller
- All Implemented Interfaces:
Marshaller
@Deprecated(since="16.3",
forRemoval=true)
public class JavaSerializationMarshaller
extends AbstractMarshaller
Deprecated, for removal: This API element is subject to removal in a future version.
since 16.3. Use ProtoStream-based marshalling instead. Will be removed in a future major version.
Standard Java serialization marshaller.
- Since:
- 5.3
- Author:
- Galder Zamarreño
-
Field Summary
Fields inherited from class AbstractMarshaller
marshallableTypeHints -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.JavaSerializationMarshaller(ClassAllowList allowList) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(ClassAllowList classAllowList) Deprecated, for removal: This API element is subject to removal in a future version.An optional method which allows an implementation to respect theClassAllowListassociated with the context, for example the EmbeddedCacheManager or RemoteCacheManager.booleanDeprecated, for removal: This API element is subject to removal in a future version.A method that checks whether the given object is marshallable as per the rules of this marshaller.Deprecated, for removal: This API element is subject to removal in a future version.objectFromByteBuffer(byte[] buf, int offset, int length) Deprecated, for removal: This API element is subject to removal in a future version.Unmarshalls an object from a specific portion of a byte array.protected ByteBufferobjectToBuffer(Object o, int estimatedSize) Deprecated, for removal: This API element is subject to removal in a future version.This is a convenience method for converting an object into aByteBufferwhich takes an estimated size as parameter.Methods inherited from class AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer, objectToOutputStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Marshaller
start, stop
-
Constructor Details
-
JavaSerializationMarshaller
public JavaSerializationMarshaller()Deprecated, for removal: This API element is subject to removal in a future version. -
JavaSerializationMarshaller
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
initialize
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MarshallerAn optional method which allows an implementation to respect theClassAllowListassociated with the context, for example the EmbeddedCacheManager or RemoteCacheManager. -
objectToBuffer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractMarshallerThis is a convenience method for converting an object into aByteBufferwhich takes an estimated size as parameter. AByteBufferallows direct access to the byte array with minimal array copying- Specified by:
objectToBufferin classAbstractMarshaller- Parameters:
o- object to marshallestimatedSize- an estimate of how large the resulting byte array may be- Throws:
IOException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MarshallerUnmarshalls an object from a specific portion of a byte array.- Parameters:
buf- byte array containing the binary representation of an object. Must not be null.offset- point in buffer to start readinglength- number of bytes to consider- Returns:
- an object
- Throws:
IOException- if unmarshalling cannot complete due to some I/O errorClassNotFoundException- if the class of the object trying to unmarshall is unknown
-
isMarshallable
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MarshallerA method that checks whether the given object is marshallable as per the rules of this marshaller.- Parameters:
o- object to verify whether it's marshallable or not- Returns:
- true if the object is marshallable, otherwise false
-
mediaType
-