protected AbstractRecordStore(MapContainer mapContainer, int partitionId) { this.name = mapContainer.getName(); this.mapContainer = mapContainer; this.partitionId = partitionId; this.mapServiceContext = mapContainer.getMapServiceContext(); NodeEngine nodeEngine = mapServiceContext.getNodeEngine(); this.serializationService = nodeEngine.getSerializationService(); this.inMemoryFormat = mapContainer.getMapConfig().getInMemoryFormat(); this.recordFactory = mapContainer.getRecordFactoryConstructor().createNew(null); this.valueComparator = mapServiceContext.getValueComparatorOf(inMemoryFormat); this.mapStoreContext = mapContainer.getMapStoreContext(); this.mapDataStore = mapStoreContext.getMapStoreManager().getMapDataStore(name, partitionId); this.lockStore = createLockStore(); Collection<RecordStoreMutationObserver<Record>> mutationObservers = mapServiceContext .createRecordStoreMutationObservers(getName(), partitionId); this.mutationObserver = new CompositeRecordStoreMutationObserver<Record>(mutationObservers); }
protected AbstractRecordStore(MapContainer mapContainer, int partitionId) { this.name = mapContainer.getName(); this.mapContainer = mapContainer; this.partitionId = partitionId; this.mapServiceContext = mapContainer.getMapServiceContext(); NodeEngine nodeEngine = mapServiceContext.getNodeEngine(); this.serializationService = nodeEngine.getSerializationService(); this.inMemoryFormat = mapContainer.getMapConfig().getInMemoryFormat(); this.recordFactory = mapContainer.getRecordFactoryConstructor().createNew(null); this.valueComparator = mapServiceContext.getValueComparatorOf(inMemoryFormat); this.mapStoreContext = mapContainer.getMapStoreContext(); this.mapDataStore = mapStoreContext.getMapStoreManager().getMapDataStore(name, partitionId); this.lockStore = createLockStore(); Collection<RecordStoreMutationObserver<Record>> mutationObservers = mapServiceContext .createRecordStoreMutationObservers(getName(), partitionId); this.mutationObserver = new CompositeRecordStoreMutationObserver<Record>(mutationObservers); }