Search in sources :

Example 1 with AbstractBaseReplicatedRecordStore

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());
    }
}
Also used : AbstractBaseReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore) ReplicatedMapProxy(com.hazelcast.replicatedmap.impl.ReplicatedMapProxy) ReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore) AbstractBaseReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService)

Example 2 with AbstractBaseReplicatedRecordStore

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());
    }
}
Also used : AbstractBaseReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore) ReplicatedMapProxy(com.hazelcast.replicatedmap.impl.ReplicatedMapProxy) AbstractBaseReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore) ReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService)

Aggregations

ReplicatedMapProxy (com.hazelcast.replicatedmap.impl.ReplicatedMapProxy)2 ReplicatedMapService (com.hazelcast.replicatedmap.impl.ReplicatedMapService)2 AbstractBaseReplicatedRecordStore (com.hazelcast.replicatedmap.impl.record.AbstractBaseReplicatedRecordStore)2 ReplicatedRecordStore (com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore)2