Package org.infinispan.marshall.core

Examples of org.infinispan.marshall.core.MarshalledValue.serialize()


      Pojo pojo = new Pojo();
      MarshalledValue mv = new MarshalledValue(pojo, true, extractCacheMarshaller(cache(0)));
      assertDeserialized(mv);
      int oldHashCode = mv.hashCode();

      mv.serialize();
      assertSerialized(mv);
      assertTrue(oldHashCode == mv.hashCode());

      MarshalledValue mv2 = new MarshalledValue(pojo, true, extractCacheMarshaller(cache(0)));
      assertSerialized(mv);
View Full Code Here


      MarshalledValue mv2 = new MarshalledValue(
            value, false, extractCacheMarshaller(cache(0, "replSync")));

      // Simulate that the marshalled value had a bigger value before
      mv2.instance = prevBytes;
      mv2.serialize();
      // Now back to the original instance and force it to serialize again
      mv2.instance = value;
      mv2.raw = null;
      mv2.serialize();
      mv2.instance = null;
View Full Code Here

      mv2.instance = prevBytes;
      mv2.serialize();
      // Now back to the original instance and force it to serialize again
      mv2.instance = value;
      mv2.raw = null;
      mv2.serialize();
      mv2.instance = null;

      assertEquals(mv, mv2);
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.