public class DefaultMapServiceContext extends Object implements MapServiceContext
| Modifier and Type | Field and Description |
|---|---|
protected NodeEngine |
nodeEngine |
| Constructor and Description |
|---|
DefaultMapServiceContext(NodeEngine nodeEngine) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddInterceptor, hasInterceptor, interceptAfterGet, interceptAfterPut, interceptAfterRemove, interceptGet, interceptPut, interceptRemove, removeInterceptoraddEventListener, addLocalEventListener, addLocalEventListener, hasRegisteredListener, removeEventListenerprotected NodeEngine nodeEngine
public DefaultMapServiceContext(NodeEngine nodeEngine)
public MapContainer getMapContainer(String mapName)
getMapContainer in interface MapServiceContextpublic Map<String,MapContainer> getMapContainers()
getMapContainers in interface MapServiceContextpublic PartitionContainer getPartitionContainer(int partitionId)
getPartitionContainer in interface MapServiceContextpublic void initPartitionsContainers()
initPartitionsContainers in interface MapServiceContextpublic void clearPartitionData(int partitionId)
clearPartitionData in interface MapServiceContextpublic String serviceName()
serviceName in interface MapServiceContextpublic MapService getService()
getService in interface MapServiceContextpublic void clearPartitions()
clearPartitions in interface MapServiceContextpublic void destroyMapStores()
destroyMapStores in interface MapServiceContextpublic void flushMaps()
flushMaps in interface MapServiceContextpublic void destroyMap(String mapName)
destroyMap in interface MapServiceContextpublic void reset()
reset in interface MapServiceContextpublic NearCacheProvider getNearCacheProvider()
getNearCacheProvider in interface MapServiceContextpublic RecordStore getRecordStore(int partitionId, String mapName)
getRecordStore in interface MapServiceContextpublic RecordStore getExistingRecordStore(int partitionId, String mapName)
getExistingRecordStore in interface MapServiceContextpublic Collection<Integer> getOwnedPartitions()
getOwnedPartitions in interface MapServiceContextpublic void reloadOwnedPartitions()
reloadOwnedPartitions in interface MapServiceContextpublic boolean isOwnedKey(Data key)
MapServiceContextisOwnedKey in interface MapServiceContextkey - key to be queried.public AtomicInteger getWriteBehindQueueItemCounter()
getWriteBehindQueueItemCounter in interface MapServiceContextpublic ExpirationManager getExpirationManager()
getExpirationManager in interface MapServiceContextpublic EvictionOperator getEvictionOperator()
getEvictionOperator in interface MapServiceContextpublic void setService(MapService mapService)
setService in interface MapServiceContextpublic NodeEngine getNodeEngine()
getNodeEngine in interface MapServiceContextpublic MergePolicyProvider getMergePolicyProvider()
getMergePolicyProvider in interface MapServiceContextpublic MapEventPublisher getMapEventPublisher()
getMapEventPublisher in interface MapServiceContextpublic MapContextQuerySupport getMapContextQuerySupport()
getMapContextQuerySupport in interface MapServiceContextpublic LocalMapStatsProvider getLocalMapStatsProvider()
getLocalMapStatsProvider in interface MapServiceContextpublic void setEvictionOperator(EvictionOperator evictionOperator)
public long getNow()
public Data toData(Object object, PartitioningStrategy partitionStrategy)
public void setMapServiceContext(MapServiceContext mapServiceContext)
public long getNow()
public Data toData(Object object, PartitioningStrategy partitionStrategy)
public void interceptAfterGet(String mapName, Object value)
interceptAfterGet in interface MapServiceContextInterceptorSupportpublic Object interceptPut(String mapName, Object oldValue, Object newValue)
interceptPut in interface MapServiceContextInterceptorSupportpublic void interceptAfterPut(String mapName, Object newValue)
interceptAfterPut in interface MapServiceContextInterceptorSupportpublic Object interceptRemove(String mapName, Object value)
interceptRemove in interface MapServiceContextInterceptorSupportpublic void interceptAfterRemove(String mapName, Object value)
interceptAfterRemove in interface MapServiceContextInterceptorSupportpublic String addInterceptor(String mapName, MapInterceptor interceptor)
addInterceptor in interface MapServiceContextInterceptorSupportpublic void removeInterceptor(String mapName, String id)
removeInterceptor in interface MapServiceContextInterceptorSupportpublic Object interceptGet(String mapName, Object value)
interceptGet in interface MapServiceContextInterceptorSupportpublic String addLocalEventListener(EntryListener entryListener, String mapName)
addLocalEventListener in interface MapServiceContextEventListenerSupportpublic String addLocalEventListener(EntryListener entryListener, EventFilter eventFilter, String mapName)
addLocalEventListener in interface MapServiceContextEventListenerSupportpublic String addEventListener(EntryListener entryListener, EventFilter eventFilter, String mapName)
addEventListener in interface MapServiceContextEventListenerSupportpublic boolean removeEventListener(String mapName, String registrationId)
removeEventListener in interface MapServiceContextEventListenerSupportpublic boolean hasRegisteredListener(String name)
hasRegisteredListener in interface MapServiceContextEventListenerSupportpublic boolean hasInterceptor(String mapName)
hasInterceptor in interface MapServiceContextInterceptorSupportCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.