public interface MapServiceContext extends MapServiceContextInterceptorSupport, MapServiceContextEventListenerSupport
RecordStore implementations.
For example all PartitionContainer and MapContainer instances
can also be reached by using this interface.
It is also responsible for providing methods which are used by lower layers of
Hazelcast and exposed on MapService.
MapManagedServiceaddInterceptor, interceptAfterGet, interceptAfterPut, interceptAfterRemove, interceptGet, interceptPut, interceptRemove, removeInterceptoraddEventListener, addLocalEventListener, addLocalEventListener, hasRegisteredListener, removeEventListenerMapContainer getMapContainer(String mapName)
Map<String,MapContainer> getMapContainers()
PartitionContainer getPartitionContainer(int partitionId)
void initPartitionsContainers()
void clearPartitionData(int partitionId)
String serviceName()
MapService getService()
void clearPartitions()
void destroyMapStores()
void flushMaps()
void destroyMap(String mapName)
void reset()
NearCacheProvider getNearCacheProvider()
RecordStore getRecordStore(int partitionId, String mapName)
RecordStore getExistingRecordStore(int partitionId, String mapName)
AtomicReference<List<Integer>> ownedPartitions()
AtomicInteger getWriteBehindQueueItemCounter()
com.hazelcast.map.eviction.ExpirationManager getExpirationManager()
void setService(MapService mapService)
NodeEngine getNodeEngine()
MergePolicyProvider getMergePolicyProvider()
MapEventPublisher getMapEventPublisher()
MapContextQuerySupport getMapContextQuerySupport()
LocalMapStatsProvider getLocalMapStatsProvider()
long getNow()
long convertTime(long seconds,
TimeUnit unit)
Data toData(Object object, PartitioningStrategy partitionStrategy)
long getExpirationTime(long ttl,
long now)
Long.MAX_VALUE in an overflow situation.
- If ttl is zero to state an eternal live, it returns Long.MAX_VALUEttl - time to livenow - nowIllegalArgumentException - when ttl < 0 or now < 0.Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.