use of com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore in project hazelcast by hazelcast.
the class ReplicatedMapTtlTest method assertAllTtlSchedulersEmpty.
private static void assertAllTtlSchedulersEmpty(ReplicatedMap map) {
String mapName = map.getName();
ReplicatedMapProxy replicatedMapProxy = (ReplicatedMapProxy) map;
ReplicatedMapService service = (ReplicatedMapService) replicatedMapProxy.getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(mapName);
for (ReplicatedRecordStore store : stores) {
assertTrue(((SecondsBasedEntryTaskScheduler) ((AbstractBaseReplicatedRecordStore) store).getTtlEvictionScheduler()).isEmpty());
}
}
use of com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore in project hazelcast by hazelcast.
the class ClientReplicatedMapTest method assertAllTtlSchedulersEmpty.
private static void assertAllTtlSchedulersEmpty(ReplicatedMap map) {
String mapName = map.getName();
ReplicatedMapProxy replicatedMapProxy = (ReplicatedMapProxy) map;
ReplicatedMapService service = (ReplicatedMapService) replicatedMapProxy.getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(mapName);
for (ReplicatedRecordStore store : stores) {
assertTrue(((SecondsBasedEntryTaskScheduler) ((AbstractBaseReplicatedRecordStore) store).getTtlEvictionScheduler()).isEmpty());
}
}
Aggregations