public class MapContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected Evictor |
evictor |
protected Extractors |
extractors |
protected Indexes |
indexes |
protected Map<String,MapInterceptor> |
interceptorMap |
protected List<MapInterceptor> |
interceptors |
protected AtomicInteger |
invalidationListenerCount
Holds number of registered
InvalidationListener from clients. |
protected MapConfig |
mapConfig |
protected MapServiceContext |
mapServiceContext |
protected MapStoreContext |
mapStoreContext |
protected boolean |
memberNearCacheInvalidationEnabled |
protected String |
name |
protected SizeEstimator |
nearCacheSizeEstimator |
protected PartitioningStrategy |
partitioningStrategy |
protected QueryEntryFactory |
queryEntryFactory |
protected String |
quorumName |
protected ConstructorFunction<Void,RecordFactory> |
recordFactoryConstructor |
protected SerializationService |
serializationService |
protected IFunction<Object,Data> |
toDataFunction |
protected MapMergePolicy |
wanMergePolicy |
protected WanReplicationPublisher |
wanReplicationPublisher |
Constructor and Description |
---|
MapContainer(String name,
MapConfig mapConfig,
MapServiceContext mapServiceContext)
Operations which are done in this constructor should obey the rules defined
in the method comment
PostJoinAwareService.getPostJoinOperation()
Otherwise undesired situations, like deadlocks, may appear. |
protected final String name
protected final String quorumName
protected final MapServiceContext mapServiceContext
protected final Map<String,MapInterceptor> interceptorMap
protected final Indexes indexes
protected final Extractors extractors
protected final SizeEstimator nearCacheSizeEstimator
protected final PartitioningStrategy partitioningStrategy
protected final MapStoreContext mapStoreContext
protected final SerializationService serializationService
protected final QueryEntryFactory queryEntryFactory
protected final List<MapInterceptor> interceptors
protected final ConstructorFunction<Void,RecordFactory> recordFactoryConstructor
protected final boolean memberNearCacheInvalidationEnabled
protected final AtomicInteger invalidationListenerCount
InvalidationListener
from clients.protected WanReplicationPublisher wanReplicationPublisher
protected MapMergePolicy wanMergePolicy
protected Evictor evictor
protected volatile MapConfig mapConfig
public MapContainer(String name, MapConfig mapConfig, MapServiceContext mapServiceContext)
PostJoinAwareService.getPostJoinOperation()
Otherwise undesired situations, like deadlocks, may appear.public void initWanReplication(NodeEngine nodeEngine)
public Indexes getIndexes()
public WanReplicationPublisher getWanReplicationPublisher()
public MapMergePolicy getWanMergePolicy()
public void addInterceptor(String id, MapInterceptor interceptor)
public List<MapInterceptor> getInterceptors()
public Map<String,MapInterceptor> getInterceptorMap()
public void removeInterceptor(String id)
public boolean isWanReplicationEnabled()
public void checkWanReplicationQueues()
public boolean isNearCacheEnabled()
public int getTotalBackupCount()
public int getBackupCount()
public int getAsyncBackupCount()
public PartitioningStrategy getPartitioningStrategy()
public SizeEstimator getNearCacheSizeEstimator()
public MapServiceContext getMapServiceContext()
public MapStoreContext getMapStoreContext()
public MapConfig getMapConfig()
public void setMapConfig(MapConfig mapConfig)
public String getName()
public String getQuorumName()
public ConstructorFunction<Void,RecordFactory> getRecordFactoryConstructor()
public QueryableEntry newQueryEntry(Data key, Object value)
public Evictor getEvictor()
public void setEvictor(Evictor evictor)
public boolean isMemberNearCacheInvalidationEnabled()
public boolean hasInvalidationListener()
public void increaseInvalidationListenerCount()
public void decreaseInvalidationListenerCount()
public boolean isInvalidationEnabled()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.