org.infinispan.marshall.jboss
Class JBossMarshaller
java.lang.Object
org.infinispan.marshall.AbstractMarshaller
org.infinispan.marshall.jboss.AbstractJBossMarshaller
org.infinispan.marshall.jboss.JBossMarshaller
- All Implemented Interfaces:
- Marshaller, StreamingMarshaller
public final class JBossMarshaller
- extends AbstractJBossMarshaller
- implements StreamingMarshaller
A JBoss Marshalling based marshaller that is oriented at internal, embedded,
Infinispan usage. It uses of a custom object table for Infinispan based
Externalizer instances that are either internal or user defined.
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 Java serialization.
- Since:
- 4.0
- Author:
- Galder ZamarreƱo, Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossMarshaller
public JBossMarshaller()
inject
public void inject(ExternalizerTable externalizerTable,
ClassLoader cl,
InvocationContextContainer icc,
GlobalConfiguration globalCfg)
stop
public void stop()
- Description copied from interface:
StreamingMarshaller
- Stop the marshaller. Implementations of this method should clear up
any cached data, or close any resources while marshalling/unmarshalling
that have not been already closed.
- Specified by:
stop
in interface StreamingMarshaller
- Overrides:
stop
in class AbstractJBossMarshaller
isMarshallableCandidate
public boolean isMarshallableCandidate(Object o)
- Overrides:
isMarshallableCandidate
in class AbstractJBossMarshaller
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.