Giriş
Şu satırı dahil ederiz
import com.hazelcast.map.impl.AbstractRecordStore;
Kodu şöyle
abstract class AbstractRecordStore implements RecordStore<Record> {
protected final int partitionId;
protected final String name;
protected final LockStore lockStore;
protected final MapContainer mapContainer;
protected final RecordFactory recordFactory;
protected final InMemoryFormat inMemoryFormat;
protected final MapStoreContext mapStoreContext;
protected final ValueComparator valueComparator;
protected final MapServiceContext mapServiceContext;
protected final MapDataStore<Data, Object> mapDataStore;
protected final SerializationService serializationService;
protected final CompositeMutationObserver<Record> mutationObserver;
protected final LocalRecordStoreStatsImpl stats = new LocalRecordStoreStatsImpl();
protected Storage<Data, Record> storage;
protected IndexingMutationObserver<Record> indexingObserver;
...
}storage Alanı
protected Storage<Data, Record> storage alanı sanırım veriyi saklayan yapımapDataStore Alanı
MapDataStore<Data, Object> mapDataStore alanı write-through, write-behind işlemlerini gerçekleştiren arayüz. WriteThroughStore yazısına bakabilirsiniz.MapDataStore (WriteThroughStore) -> has MapStoreWrapper
MapStoreWrapper -> has MapLoader or MapStore
Hiç yorum yok:
Yorum Gönder