Examples of Huge


Examples of org.infinispan.persistence.jpa.entity.Huge

      Random random = new Random();
      for (int i = 0; i < count; ++i) {
         byte[] data = new byte[size];
         random.nextBytes(data);
         String key = "key" + i;
         Huge value = new Huge(key, data);
         long lifespan = provider == null ? -1 : provider.get();
         MarshalledEntryImpl entry = lifespan < 0 ? createEntry(key, value) : createEntry(key, value, lifespan);
         cs.write(entry);
         if (i % 100 == 0)
            log.info("Writing key " + key);
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.