Class AbstractJBossMarshaller
java.lang.Object
org.infinispan.commons.marshall.AbstractMarshaller
org.infinispan.jboss.marshalling.commons.AbstractJBossMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamingMarshaller
- Direct Known Subclasses:
GenericJBossMarshaller,JBossMarshaller
public abstract class AbstractJBossMarshaller
extends org.infinispan.commons.marshall.AbstractMarshaller
implements org.infinispan.commons.marshall.StreamingMarshaller
Common parent for both embedded and standalone JBoss Marshalling-based marshallers.
- Since:
- 5.0
- Author:
- Galder ZamarreƱo, Sanne Grinovero, Dan Berindei
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jboss.marshalling.MarshallingConfigurationprotected static final intprotected static final intprotected static final JBossMarshallerFactoryprotected static final org.infinispan.commons.logging.LogFields inherited from class org.infinispan.commons.marshall.AbstractMarshaller
marshallableTypeHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidbooleanprotected booleanorg.infinispan.commons.dataconversion.MediaTypefinal ObjectobjectFromByteBuffer(byte[] buf, int offset, int length) final Objectprotected final org.infinispan.commons.io.ByteBufferobjectToBuffer(Object o, int estimatedSize) final voidobjectToObjectStream(Object obj, ObjectOutput out) voidstart()final ObjectInputstartObjectInput(InputStream is, boolean isReentrant) final ObjectOutputstartObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize) voidstop()Methods inherited from class org.infinispan.commons.marshall.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBufferMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.marshall.Marshaller
getBufferSizePredictor, initialize, objectFromByteBuffer, objectToBuffer, objectToByteBuffer, objectToByteBufferMethods inherited from interface org.infinispan.commons.marshall.StreamingMarshaller
objectFromInputStream
-
Field Details
-
log
protected static final org.infinispan.commons.logging.Log log -
factory
-
DEF_INSTANCE_COUNT
protected static final int DEF_INSTANCE_COUNT- See Also:
-
DEF_CLASS_COUNT
protected static final int DEF_CLASS_COUNT- See Also:
-
baseCfg
protected final org.jboss.marshalling.MarshallingConfiguration baseCfg
-
-
Constructor Details
-
AbstractJBossMarshaller
public AbstractJBossMarshaller()
-
-
Method Details
-
objectToObjectStream
- Specified by:
objectToObjectStreamin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
objectToBuffer
protected final org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException - Specified by:
objectToBufferin classorg.infinispan.commons.marshall.AbstractMarshaller- Throws:
IOException
-
startObjectOutput
public final ObjectOutput startObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize) throws IOException - Specified by:
startObjectOutputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
finishObjectOutput
- Specified by:
finishObjectOutputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
objectFromByteBuffer
public final Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException - Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
startObjectInput
- Specified by:
startObjectInputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
objectFromObjectStream
public final Object objectFromObjectStream(ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
objectFromObjectStreamin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOExceptionClassNotFoundException
-
finishObjectInput
- Specified by:
finishObjectInputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
isMarshallable
- Specified by:
isMarshallablein interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
Exception
-
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
startin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
stopin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
isMarshallableCandidate
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.Marshaller
-