Class JBossByteBufferMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
org.wildfly.clustering.marshalling.jboss.JBossByteBufferMarshaller
- All Implemented Interfaces:
ByteBufferMarshaller,Marshallability,Marshaller<Object,ByteBuffer>
A
ByteBufferMarshaller based on JBoss Marshalling.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.marshalling.Marshallability
TRUE -
Constructor Summary
ConstructorsConstructorDescriptionJBossByteBufferMarshaller(org.jboss.marshalling.MarshallingConfiguration configuration, ClassLoader loader) Creates an unversioned marshaller using a single marshalling configuration.JBossByteBufferMarshaller(MarshallingConfigurationRepository repository, ClassLoader loader) Creates a versioned marshaller supporting multiple marshalling configurations. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarshallable(Object object) readFrom(InputStream input) toString()voidwriteTo(OutputStream output, Object value) 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, size, write
-
Constructor Details
-
JBossByteBufferMarshaller
Creates a versioned marshaller supporting multiple marshalling configurations.- Parameters:
repository- a repository of marshalling configurationsloader- a class loader
-
JBossByteBufferMarshaller
public JBossByteBufferMarshaller(org.jboss.marshalling.MarshallingConfiguration configuration, ClassLoader loader) Creates an unversioned marshaller using a single marshalling configuration.- Parameters:
configuration- a marshalling configurationloader- a loader
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
isMarshallable
-
toString
-