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);
}
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);
}
Aggregations