Search in sources :

Example 1 with ReplicatedMapProxy

use of com.hazelcast.replicatedmap.impl.ReplicatedMapProxy in project hazelcast by hazelcast.

the class ReplicatedMapAbstractTest method getReplicatedRecord.

@SuppressWarnings("unchecked")
protected <K, V> ReplicatedRecord<K, V> getReplicatedRecord(ReplicatedMap<K, V> map, K key) throws Exception {
    ReplicatedMapProxy<K, V> proxy = (ReplicatedMapProxy<K, V>) map;
    ReplicatedMapService service = (ReplicatedMapService) REPLICATED_MAP_SERVICE.get(proxy);
    ReplicatedRecordStore store = service.getReplicatedRecordStore(map.getName(), false, key);
    return store.getReplicatedRecord(key);
}
Also used : ReplicatedMapProxy(com.hazelcast.replicatedmap.impl.ReplicatedMapProxy) ReplicatedRecordStore(com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService)

Example 2 with ReplicatedMapProxy

use of com.hazelcast.replicatedmap.impl.ReplicatedMapProxy in project hazelcast by hazelcast.

the class ReplicatedMapAbstractTest method getStore.

@SuppressWarnings("unchecked")
protected <K, V> ReplicatedRecordStore getStore(ReplicatedMap<K, V> map, K key) throws Exception {
    ReplicatedMapProxy<K, V> proxy = (ReplicatedMapProxy<K, V>) map;
    ReplicatedMapService service = (ReplicatedMapService) REPLICATED_MAP_SERVICE.get(proxy);
    return service.getReplicatedRecordStore(map.getName(), false, key);
}
Also used : ReplicatedMapProxy(com.hazelcast.replicatedmap.impl.ReplicatedMapProxy) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService)

Aggregations

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