void function ( ) { ReplayCache < Long > loc0 = ReplayCache . newInstance ( TEST_MAX_SIZE , 10 ) ; CounterCallable loc1 = new CounterCallable ( ) ; Assert . assertEquals ( 1 , ( long ) loc0 . run ( "srini_string" , loc1 ) ) ; Thread . sleep ( 11 ) ; Assert . assertEquals ( 2 , ( long ) loc0 . run ( "srini_string" , loc1 ) ) ; }
tests that keys are evicted after the configured timeout . concode_field_sep String TEST_ERROR_MESSAGE concode_elem_sep long mCount concode_elem_sep Exception mException concode_elem_sep Long TEST_MAX_SIZE concode_elem_sep ReplayCache<Long> mCache concode_elem_sep Long TEST_TIMEOUT_MS concode_field_sep Long call concode_elem_sep Long call concode_elem_sep Long call concode_elem_sep Long call concode_elem_sep void testSizeEviction concode_elem_sep void before concode_elem_sep void testAlluxioExceptionRethrow2 concode_elem_sep void testAlluxioExceptionRethrow1 concode_elem_sep void testRuntimeExceptionPropagated1 concode_elem_sep void testCaching2 concode_elem_sep void testRuntimeExceptionPropagated2 concode_elem_sep void testCaching1 concode_elem_sep void testIOExceptionRethrow