Examples of retrieveOldestExpiredIdentity()


Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        assertEquals("T8", identity3.getExpiresTime(),170);
        assertEquals("T9", identity3.getSequenceNo(),2);

        // Retrieve expired identities that are as old or older
        // than 25 - TTL (should be none).
        assertNull("T10", defaultCacheStore.retrieveOldestExpiredIdentity());

        // Remove entries that are as old or older
        // than 30 - TTL (Should be none).
        defaultCacheStore.removeExpiredIdentities();
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        // than 30 - TTL (Should be none).
        defaultCacheStore.removeExpiredIdentities();

        // Retrieve expired identities that are as old or older
        // than 99 - TTL (should be none).
        assertNull("T11", defaultCacheStore.retrieveOldestExpiredIdentity());

        // Retrieve expired identities that are as old or older
        // than 100 - TTL (should be identity1).
        assertEquals("T12", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity1);
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        // than 99 - TTL (should be none).
        assertNull("T11", defaultCacheStore.retrieveOldestExpiredIdentity());

        // Retrieve expired identities that are as old or older
        // than 100 - TTL (should be identity1).
        assertEquals("T12", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity1);

        // Remove entries that are as old or older
        // than 100 - TTL (Should be identity1). Note we will call cacheTime
        // two times to look up to first non-expires entry.
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        // two times to look up to first non-expires entry.
        defaultCacheStore.removeExpiredIdentities();

        // Retrieve expired identities that are as old or older
        // than 100 - TTL (should be none as we deleted identity1).
        assertNull("T13", defaultCacheStore.retrieveOldestExpiredIdentity());

        // Retrieve expired identities that are as old or older
        // than 110 - TTL (should be identity2).
        assertEquals("T14", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity2);
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        // than 100 - TTL (should be none as we deleted identity1).
        assertNull("T13", defaultCacheStore.retrieveOldestExpiredIdentity());

        // Retrieve expired identities that are as old or older
        // than 110 - TTL (should be identity2).
        assertEquals("T14", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity2);

        // Retrieve expired identities that are as old or older
        // than 200 - TTL (should be still identity2).
        assertEquals("T15", defaultCacheStore.retrieveOldestExpiredIdentity(),
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        assertEquals("T14", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity2);

        // Retrieve expired identities that are as old or older
        // than 200 - TTL (should be still identity2).
        assertEquals("T15", defaultCacheStore.retrieveOldestExpiredIdentity(),
                identity2);

        // Remove entries that are as old or older
        // than 210 - TTL (Should be identity1). Note we will call cacheTime
        // one time to look up to first non-expires entry.
View Full Code Here

Examples of com.volantis.mcs.cache.CacheStore.retrieveOldestExpiredIdentity()

        // one time to look up to first non-expires entry.
        defaultCacheStore.removeExpiredIdentities();

        // Retrieve expired identities that are as old or older
        // than 220 - TTL (should be none).
        assertEquals("T16", defaultCacheStore.retrieveOldestExpiredIdentity(),
                null);
       
        // Final test for expected number of getTimeInMillis() calls.
        assertEquals("T17", Integer.MAX_VALUE, cacheTime.getTimeInMillis());
    }
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.