Exemplo n.º 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);
  }
Exemplo n.º 2
0
 public void startLoading() {
   if (mapStoreContext.isMapLoader()) {
     loadingFutures.add(keyLoader.startInitialLoad(mapStoreContext, partitionId));
   }
 }