public interface ICacheService extends ManagedService, RemoteService, FragmentedMigrationAwareService, EventPublishingService<Object,CacheEventListener>
| Modifier and Type | Field and Description | 
|---|---|
| static String | CACHE_SUPPORT_NOT_AVAILABLE_ERROR_MESSAGE | 
| static String | SERVICE_NAME | 
| Modifier and Type | Method and Description | 
|---|---|
| String | addInvalidationListener(String cacheNameWithPrefix,
                       CacheEventListener listener,
                       boolean localOnly) | 
| CacheStatisticsImpl | createCacheStatIfAbsent(String cacheNameWithPrefix) | 
| void | deleteCache(String cacheNameWithPrefix,
           String callerUuid,
           boolean destroy) | 
| CacheConfig | deleteCacheConfig(String cacheNameWithPrefix) | 
| void | deleteCacheStat(String cacheNameWithPrefix) | 
| void | deregisterAllListener(String cacheNameWithPrefix) | 
| boolean | deregisterListener(String cacheNameWithPrefix,
                  String registrationId) | 
| CacheConfig | findCacheConfig(String simpleName) | 
| CacheConfig | getCacheConfig(String cacheNameWithPrefix) | 
| Collection<CacheConfig> | getCacheConfigs() | 
| CacheOperationProvider | getCacheOperationProvider(String cacheNameWithPrefix,
                         InMemoryFormat storageType)Creates cache operations according to the storage-type of the cache | 
| CacheWanEventPublisher | getCacheWanEventPublisher()Returns the WAN event publisher responsible for publishing
 primary and backup WAN events for caches. | 
| CacheEventJournal | getEventJournal()Returns an interface for interacting with the cache event journals. | 
| NodeEngine | getNodeEngine() | 
| CacheContext | getOrCreateCacheContext(String cacheNameWithPrefix) | 
| ICacheRecordStore | getOrCreateRecordStore(String cacheNameWithPrefix,
                      int partitionId)Gets or creates a cache record store with the prefixed  cacheNameWithPrefixand partition ID. | 
| ICacheRecordStore | getRecordStore(String cacheNameWithPrefix,
              int partitionId)Returns a cache record store with the prefixed  cacheNameWithPrefixand partition ID
 ornullif one doesn't exist. | 
| CachePartitionSegment | getSegment(int partitionId) | 
| CacheStatistics | getStatistics(String cacheNameWithPrefix) | 
| boolean | isWanReplicationEnabled(String cacheNameWithPrefix)Returns  trueif WAN replication is enabled for the cache namedcacheNameWithPrefix. | 
| void | publishEvent(CacheEventContext cacheEventContext) | 
| void | publishEvent(String cacheNameWithPrefix,
            CacheEventSet eventSet,
            int orderKey) | 
| CacheConfig | putCacheConfigIfAbsent(CacheConfig config) | 
| String | registerListener(String cacheNameWithPrefix,
                CacheEventListener listener,
                boolean isLocal) | 
| String | registerListener(String cacheNameWithPrefix,
                CacheEventListener listener,
                EventFilter eventFilter,
                boolean isLocal) | 
| void | sendInvalidationEvent(String cacheNameWithPrefix,
                     Data key,
                     String sourceUuid) | 
| void | setManagementEnabled(CacheConfig cacheConfig,
                    String cacheNameWithPrefix,
                    boolean enabled) | 
| void | setStatisticsEnabled(CacheConfig cacheConfig,
                    String cacheNameWithPrefix,
                    boolean enabled) | 
init, reset, shutdowncreateDistributedObject, destroyDistributedObjectgetAllServiceNamespaces, isKnownServiceNamespace, prepareReplicationOperationbeforeMigration, commitMigration, prepareReplicationOperation, rollbackMigrationdispatchEventstatic final String CACHE_SUPPORT_NOT_AVAILABLE_ERROR_MESSAGE
static final String SERVICE_NAME
ICacheRecordStore getOrCreateRecordStore(String cacheNameWithPrefix, int partitionId)
cacheNameWithPrefix
 and partition ID.cacheNameWithPrefix - the full name of the ICache, including the manager scope prefixpartitionId - the record store partition IDICacheRecordStore getRecordStore(String cacheNameWithPrefix, int partitionId)
cacheNameWithPrefix and partition ID
 or null if one doesn't exist.cacheNameWithPrefix - the full name of the ICache, including the manager scope prefixpartitionId - the record store partition IDnull if it doesn't existCachePartitionSegment getSegment(int partitionId)
CacheConfig putCacheConfigIfAbsent(CacheConfig config)
CacheConfig getCacheConfig(String cacheNameWithPrefix)
CacheConfig findCacheConfig(String simpleName)
Collection<CacheConfig> getCacheConfigs()
CacheConfig deleteCacheConfig(String cacheNameWithPrefix)
CacheStatisticsImpl createCacheStatIfAbsent(String cacheNameWithPrefix)
CacheContext getOrCreateCacheContext(String cacheNameWithPrefix)
void deleteCacheStat(String cacheNameWithPrefix)
void setStatisticsEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
void setManagementEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
void publishEvent(CacheEventContext cacheEventContext)
void publishEvent(String cacheNameWithPrefix, CacheEventSet eventSet, int orderKey)
NodeEngine getNodeEngine()
String registerListener(String cacheNameWithPrefix, CacheEventListener listener, boolean isLocal)
String registerListener(String cacheNameWithPrefix, CacheEventListener listener, EventFilter eventFilter, boolean isLocal)
void deregisterAllListener(String cacheNameWithPrefix)
CacheStatistics getStatistics(String cacheNameWithPrefix)
CacheOperationProvider getCacheOperationProvider(String cacheNameWithPrefix, InMemoryFormat storageType)
String addInvalidationListener(String cacheNameWithPrefix, CacheEventListener listener, boolean localOnly)
void sendInvalidationEvent(String cacheNameWithPrefix, Data key, String sourceUuid)
boolean isWanReplicationEnabled(String cacheNameWithPrefix)
true if WAN replication is enabled for the cache named cacheNameWithPrefix.cacheNameWithPrefix - the full name of the ICache, including the manager scope prefixCacheWanEventPublisher getCacheWanEventPublisher()
CacheEventJournal getEventJournal()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.