Class JBossMarshaller

  • All Implemented Interfaces:
    org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamingMarshaller
    Direct Known Subclasses:
    JBossUserMarshaller

    @Deprecated
    public class JBossMarshaller
    extends AbstractJBossMarshaller
    implements org.infinispan.commons.marshall.StreamingMarshaller
    Deprecated.
    since 11.0. To be removed in 14.0 ISPN-11947.
    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
    • Method Detail

      • start

        public void start()
        Deprecated.
        Specified by:
        start in interface org.infinispan.commons.marshall.Marshaller
        Specified by:
        start in interface org.infinispan.commons.marshall.StreamingMarshaller
        Overrides:
        start in class AbstractJBossMarshaller
      • stop

        public void stop()
        Deprecated.
        Specified by:
        stop in interface org.infinispan.commons.marshall.Marshaller
        Specified by:
        stop in interface org.infinispan.commons.marshall.StreamingMarshaller
        Overrides:
        stop in class AbstractJBossMarshaller