Class ProtoStreamByteBufferMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
org.wildfly.clustering.marshalling.protostream.ProtoStreamByteBufferMarshaller
- All Implemented Interfaces:
ByteBufferMarshaller,Marshallability,Marshaller<Object,ByteBuffer>
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.marshalling.Marshallability
TRUE -
Constructor Summary
ConstructorsConstructorDescriptionProtoStreamByteBufferMarshaller(org.infinispan.protostream.ImmutableSerializationContext context) ProtoStreamByteBufferMarshaller(org.infinispan.protostream.ImmutableSerializationContext context, ClassLoader loader) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarshallable(Object object) Indicates whether the specified object can be marshalled.readFrom(InputStream input) Reads an object from the specified input stream.Returns the marshalled size of the specified object.toString()voidwriteTo(OutputStream output, Object object) Writes the specified object to the specified output stream.Methods inherited from class org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
getContextClassLoaderProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.ByteBufferMarshaller
read, write
-
Constructor Details
-
ProtoStreamByteBufferMarshaller
public ProtoStreamByteBufferMarshaller(org.infinispan.protostream.ImmutableSerializationContext context) -
ProtoStreamByteBufferMarshaller
public ProtoStreamByteBufferMarshaller(org.infinispan.protostream.ImmutableSerializationContext context, ClassLoader loader)
-
-
Method Details
-
size
Description copied from interface:ByteBufferMarshallerReturns the marshalled size of the specified object.- Parameters:
object- the object whose marshalled size is to be computed- Returns:
- the marshalled size of the specified object.
-
isMarshallable
Description copied from interface:MarshallabilityIndicates whether the specified object can be marshalled.- Parameters:
object- an object to be marshalled- Returns:
- true, if the specified object can be marshalled, false otherwise
-
readFrom
Description copied from interface:ByteBufferMarshallerReads an object from the specified input stream.- Parameters:
input- an input stream- Returns:
- the unmarshalled object
- Throws:
IOException- if the object could not be read
-
writeTo
Description copied from interface:ByteBufferMarshallerWrites the specified object to the specified output stream.- Parameters:
output- an output streamobject- an object to marshal- Throws:
IOException- if the object could not be written
-
toString
-