示例#1
0
  public DefaultRecordStore(
      MapContainer mapContainer, int partitionId, MapKeyLoader keyLoader, ILogger logger) {
    super(mapContainer, partitionId);

    this.logger = logger;
    this.keyLoader = keyLoader;
    this.lockStore = createLockStore();
    this.mapStoreContext = mapContainer.getMapStoreContext();
    MapStoreManager mapStoreManager = mapStoreContext.getMapStoreManager();
    this.mapDataStore = mapStoreManager.getMapDataStore(partitionId);
    this.recordStoreLoader = createRecordStoreLoader(mapStoreContext);
  }
示例#2
0
 public void startLoading() {
   if (mapStoreContext.isMapLoader()) {
     loadingFutures.add(keyLoader.startInitialLoad(mapStoreContext, partitionId));
   }
 }