org.infinispan.marshall.jboss
Class JBossMarshaller
java.lang.Object
org.infinispan.marshall.AbstractMarshaller
org.infinispan.marshall.jboss.GenericJBossMarshaller
org.infinispan.marshall.jboss.JBossMarshaller
- All Implemented Interfaces:
- Marshaller, StreamingMarshaller
public class JBossMarshaller
- extends GenericJBossMarshaller
- implements StreamingMarshaller
A specialized form of the GenericJBossMarshaller
, making use of a custom object table for types internal to
Infinispan.
The reason why this is implemented specially in Infinispan rather than resorting to Java serialization or even the
more efficient JBoss serialization is that a lot of efficiency can be gained when a majority of the serialization
that occurs has to do with a small set of known types such as GlobalTransaction
or
ReplicableCommand
, and class type information can be replaced with simple magic
numbers.
Unknown types (typically user data) falls back to JBoss serialization.
- Since:
- 4.0
- Author:
- Galder ZamarreƱo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossMarshaller
public JBossMarshaller()
start
public void start(ClassLoader defaultCl,
RemoteCommandsFactory cmdFactory,
StreamingMarshaller ispnMarshaller)
stop
public void stop()
- Overrides:
stop
in class GenericJBossMarshaller
objectFromInputStream
public Object objectFromInputStream(InputStream inputStream)
throws IOException,
ClassNotFoundException
- Specified by:
objectFromInputStream
in interface StreamingMarshaller
- Throws:
IOException
ClassNotFoundException
isMarshallableCandidate
public boolean isMarshallableCandidate(Object o)
- Overrides:
isMarshallableCandidate
in class GenericJBossMarshaller
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.