Class JdkMarshallerImpl

  • All Implemented Interfaces:
    JdkMarshaller, Marshaller

    public class JdkMarshallerImpl
    extends AbstractNodeNameAwareMarshaller
    implements JdkMarshaller
    Implementation of Marshaller based on JDK serialization mechanism.

    Configuration

    Mandatory

    This marshaller has no mandatory configuration parameters.

    Java Example

    JdkMarshaller needs to be explicitly configured to override default binary marshaller - see IgniteBinary.
     JdkMarshaller marshaller = new JdkMarshaller();
    
     IgniteConfiguration cfg = new IgniteConfiguration();
    
     // Override default marshaller.
     cfg.setMarshaller(marshaller);
    
     // Starts grid.
     G.start(cfg);
     

    Spring Example

    JdkMarshaller can be configured from Spring XML configuration file:
     <bean id="grid.custom.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" singleton="true">
         ...
         <property name="marshaller">
             <bean class="org.apache.ignite.marshaller.MarshallersFactory"/>
         </property>
         ...
     </bean>
     


    For information about Spring framework visit www.springframework.org