1
1
/*
2
- * Copyright (c) 2000, 2024 , Oracle and/or its affiliates.
2
+ * Copyright (c) 2000, 2025 , Oracle and/or its affiliates.
3
3
*
4
4
* Licensed under the Universal Permissive License v 1.0 as shown at
5
5
* https://oss.oracle.com/licenses/upl.
@@ -2114,7 +2114,7 @@ public void testGetAllEmptyCache()
2114
2114
@ Test
2115
2115
public void testCacheStoreExpireOnPutWithWriteThrough ()
2116
2116
{
2117
- testCacheStoreExpire ("dist-rwbm-wt-bin" , 1000 , false );
2117
+ testCacheStoreExpire ("dist-rwbm-wt-bin" , EXPIRY_MILLIS , false );
2118
2118
}
2119
2119
2120
2120
/**
@@ -2123,7 +2123,7 @@ public void testCacheStoreExpireOnPutWithWriteThrough()
2123
2123
@ Test
2124
2124
public void testCacheStoreExpireOnPutAllWithWriteThrough ()
2125
2125
{
2126
- testCacheStoreExpire ("dist-rwbm-wt-bin" , 1000 , true );
2126
+ testCacheStoreExpire ("dist-rwbm-wt-bin" , EXPIRY_MILLIS , true );
2127
2127
}
2128
2128
2129
2129
/**
@@ -2132,8 +2132,8 @@ public void testCacheStoreExpireOnPutAllWithWriteThrough()
2132
2132
@ Test
2133
2133
public void testCacheStoreExpireOnPutWithWriteBehind ()
2134
2134
{
2135
- testCacheStoreExpire ("dist-rwbm-wb-bin" , 1000 , false );
2136
- testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , 1000 , false );
2135
+ testCacheStoreExpire ("dist-rwbm-wb-bin" , EXPIRY_MILLIS , false );
2136
+ testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , EXPIRY_MILLIS , false );
2137
2137
}
2138
2138
2139
2139
/**
@@ -2142,8 +2142,8 @@ public void testCacheStoreExpireOnPutWithWriteBehind()
2142
2142
@ Test
2143
2143
public void testCacheStoreExpireOnPutAllWithWriteBehind ()
2144
2144
{
2145
- testCacheStoreExpire ("dist-rwbm-wb-bin" , 1000 , true );
2146
- testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , 1000 , true );
2145
+ testCacheStoreExpire ("dist-rwbm-wb-bin" , EXPIRY_MILLIS , true );
2146
+ testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , EXPIRY_MILLIS , true );
2147
2147
}
2148
2148
2149
2149
private void testCacheStoreExpire (String sCacheName , long cExpiryMillis , boolean fUsePutAll )
@@ -2753,8 +2753,8 @@ public void testConfigWbRemove()
2753
2753
@ Test
2754
2754
public void testExpiringProcessor ()
2755
2755
{
2756
- testExpiringProcessor ("dist-rwbm-wt-bin" , 1000 );
2757
- testExpiringProcessor ("dist-rwbm-wb-bin" , 1000 );
2756
+ testExpiringProcessor ("dist-rwbm-wt-bin" , EXPIRY_MILLIS );
2757
+ testExpiringProcessor ("dist-rwbm-wb-bin" , EXPIRY_MILLIS );
2758
2758
}
2759
2759
2760
2760
private void testExpiringProcessor (String sCacheName , long cExpiry )
@@ -4093,6 +4093,11 @@ public static void main(String[] asArg)
4093
4093
*/
4094
4094
public static String FILE_CFG_CACHE = "rwbm-cache-config.xml" ;
4095
4095
4096
+ /**
4097
+ * The default expiry time.
4098
+ */
4099
+ public static final int EXPIRY_MILLIS = 2000 ;
4100
+
4096
4101
// ----- data members ---------------------------------------------------
4097
4102
4098
4103
/**
0 commit comments