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.
@@ -1616,7 +1616,7 @@ public void testGetAllEmptyCache()
1616
1616
@ Test
1617
1617
public void testCacheStoreExpireOnPutWithWriteThrough ()
1618
1618
{
1619
- testCacheStoreExpire ("dist-rwbm-wt-bin" , 1000 , false );
1619
+ testCacheStoreExpire ("dist-rwbm-wt-bin" , EXPIRY_MILLIS , false );
1620
1620
}
1621
1621
1622
1622
/**
@@ -1625,7 +1625,7 @@ public void testCacheStoreExpireOnPutWithWriteThrough()
1625
1625
@ Test
1626
1626
public void testCacheStoreExpireOnPutAllWithWriteThrough ()
1627
1627
{
1628
- testCacheStoreExpire ("dist-rwbm-wt-bin" , 1000 , true );
1628
+ testCacheStoreExpire ("dist-rwbm-wt-bin" , EXPIRY_MILLIS , true );
1629
1629
}
1630
1630
1631
1631
/**
@@ -1634,8 +1634,8 @@ public void testCacheStoreExpireOnPutAllWithWriteThrough()
1634
1634
@ Test
1635
1635
public void testCacheStoreExpireOnPutWithWriteBehind ()
1636
1636
{
1637
- testCacheStoreExpire ("dist-rwbm-wb-bin" , 1000 , false );
1638
- testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , 1000 , false );
1637
+ testCacheStoreExpire ("dist-rwbm-wb-bin" , EXPIRY_MILLIS , false );
1638
+ testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , EXPIRY_MILLIS , false );
1639
1639
}
1640
1640
1641
1641
/**
@@ -1644,8 +1644,8 @@ public void testCacheStoreExpireOnPutWithWriteBehind()
1644
1644
@ Test
1645
1645
public void testCacheStoreExpireOnPutAllWithWriteBehind ()
1646
1646
{
1647
- testCacheStoreExpire ("dist-rwbm-wb-bin" , 1000 , true );
1648
- testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , 1000 , true );
1647
+ testCacheStoreExpire ("dist-rwbm-wb-bin" , EXPIRY_MILLIS , true );
1648
+ testCacheStoreExpire ("dist-rwbm-wb-bin-remove" , EXPIRY_MILLIS , true );
1649
1649
}
1650
1650
1651
1651
private void testCacheStoreExpire (String sCacheName , long cExpiryMillis , boolean fUsePutAll )
@@ -2227,8 +2227,8 @@ public void testConfigWbRemove()
2227
2227
@ Test
2228
2228
public void testExpiringProcessor ()
2229
2229
{
2230
- testExpiringProcessor ("dist-rwbm-wt-bin" , 1000 );
2231
- testExpiringProcessor ("dist-rwbm-wb-bin" , 1000 );
2230
+ testExpiringProcessor ("dist-rwbm-wt-bin" , EXPIRY_MILLIS );
2231
+ testExpiringProcessor ("dist-rwbm-wb-bin" , EXPIRY_MILLIS );
2232
2232
}
2233
2233
2234
2234
private void testExpiringProcessor (String sCacheName , long cExpiry )
@@ -3529,6 +3529,11 @@ public static void main(String[] asArg)
3529
3529
*/
3530
3530
public static String FILE_CFG_CACHE = "rwbm-cache-config.xml" ;
3531
3531
3532
+ /**
3533
+ * The default expiry time.
3534
+ */
3535
+ public static final int EXPIRY_MILLIS = 2000 ;
3536
+
3532
3537
// ----- data members ---------------------------------------------------
3533
3538
3534
3539
/**
0 commit comments