public class CacheService extends AbstractCacheService
This service is responsible for:
CacheRecordStore.ICache.MigrationAwareService.WARNING:This service is an optionally registered service which is enabled when Caching
class is found on the classpath.
If registered, it will provide all the above cache operations for all partitions of the node which it is registered on.
Distributed Cache Name is used for providing a unique name to a cache object to overcome cache manager
scoping which depends on URI and class loader parameters. It's a simple concatenation of CacheNamePrefix and
cache name where CacheNamePrefix is calculated by each cache manager
using AbstractHazelcastCacheManager.cacheNamePrefix().
cacheContexesConstructorFunction, cacheContexts, cacheEventHandler, cacheSplitBrainHandler, cacheStatisticsConstructorFunction, closeableListeners, configs, nodeEngine, operationProviderCache, resources, segments, statisticsSERVICE_NAME| Constructor and Description |
|---|
CacheService() |
| Modifier and Type | Method and Description |
|---|---|
protected ICacheRecordStore |
createNewRecordStore(String name,
int partitionId) |
protected CacheOperationProvider |
createOperationProvider(String nameWithPrefix,
InMemoryFormat inMemoryFormat) |
CacheWanEventPublisher |
getCacheWanEventPublisher() |
boolean |
isWanReplicationEnabled(String cacheName) |
protected CachePartitionSegment |
newPartitionSegment(int partitionId) |
Operation |
prepareReplicationOperation(PartitionReplicationEvent event) |
String |
toString() |
addCacheResource, addInvalidationListener, beforeMigration, cacheEntryListenerDeregistered, cacheEntryListenerRegistered, clearPartitionReplica, closeSegments, commitMigration, createCacheStatIfAbsent, createDistributedObject, deleteCache, deleteCacheConfig, deleteCacheStat, deregisterAllListener, deregisterListener, destroyCacheOnAllMembers, destroyDistributedObject, destroySegments, dispatchEvent, findCacheConfig, getCacheConfig, getCacheConfigs, getCacheContext, getCacheOperationProvider, getNodeEngine, getOrCreateCacheContext, getOrCreateRecordStore, getPostJoinOperation, getQuorumName, getRecordStore, getSegment, getStatistics, init, onPartitionLost, postInit, prepareMergeRunnable, publishCachePartitionLostEvent, publishEvent, publishEvent, putCacheConfigIfAbsent, registerListener, registerListener, registerListenerInternal, reset, rollbackMigration, sendInvalidationEvent, setManagementEnabled, setStatisticsEnabled, shutdown, toData, toObjectprotected CachePartitionSegment newPartitionSegment(int partitionId)
newPartitionSegment in class AbstractCacheServiceprotected ICacheRecordStore createNewRecordStore(String name, int partitionId)
createNewRecordStore in class AbstractCacheServiceprotected CacheOperationProvider createOperationProvider(String nameWithPrefix, InMemoryFormat inMemoryFormat)
createOperationProvider in class AbstractCacheServicepublic Operation prepareReplicationOperation(PartitionReplicationEvent event)
public boolean isWanReplicationEnabled(String cacheName)
public CacheWanEventPublisher getCacheWanEventPublisher()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.