Package com.volantis.cache.impl.stats

Examples of com.volantis.cache.impl.stats.StatisticsSnapshotImpl.difference()


        StatisticsSnapshot snapshot2 = new StatisticsSnapshotImpl(cacheMock,
                Period.inMilliSeconds(2000L),
                Time.inMilliSeconds(1010L),
                220, 24, 100);

        StatisticsDelta delta = snapshot2.difference(snapshot1);
        assertEquals(Period.inMilliSeconds(1000L), delta.getPeriod());
        assertEquals(120, delta.getHitCount());
        assertEquals(14, delta.getMissedAddedCount());
        assertEquals(30, delta.getRemovedCount());
    }
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.