Examples of disposeExpiredRelative()


Examples of org.directmemory.memory.OffHeapMemoryBuffer.disposeExpiredRelative()

    mem.disposeExpiredAbsolute();
    logger.info("total used=" + Ram.inMb(mem.used()));
    assertEquals(size*howMany+size*howMany/2, mem.used());
   
    logger.info("calling disposeExpiredRelative");
    mem.disposeExpiredRelative();
    logger.info("total used=" + Ram.inMb(mem.used()));
    assertEquals(size*howMany, mem.used());

    Thread.sleep(2000);

View Full Code Here

Examples of org.directmemory.memory.OffHeapMemoryBuffer.disposeExpiredRelative()

    assertEquals(size*howMany, mem.used());

    Thread.sleep(2000);

    logger.info("calling disposeExpiredRelative again");
    mem.disposeExpiredRelative();
    logger.info("total used=" + Ram.inMb(mem.used()));
    assertEquals(0, mem.used());
   
  }
}
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.