Class EHCacheRegionTTLTest

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void testTTL()
      Tests "Time to live" functionality of EHCacheRegion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EHCacheRegionTTLTest

        public EHCacheRegionTTLTest()
    • Method Detail

      • testTTL

        public void testTTL()
                     throws java.lang.InterruptedException
        Tests "Time to live" functionality of EHCacheRegion. This test adds one key/value to the cache and then measures the "time to live" for this key. It enforces eviction by periodic "ping" to the EHCache, because EHCache does ttl evictions synchronously with user requests (this means there must be some user request to perform "ttl eviction").
        Throws:
        java.lang.InterruptedException