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
cacheNameWithPrefix
and partition ID. |
ICacheRecordStore |
getRecordStore(String cacheNameWithPrefix,
int partitionId)
Returns a cache record store with the prefixed
cacheNameWithPrefix and partition ID
or null if one doesn't exist. |
CachePartitionSegment |
getSegment(int partitionId) |
CacheStatistics |
getStatistics(String cacheNameWithPrefix) |
boolean |
isWanReplicationEnabled(String cacheNameWithPrefix)
Returns
true if WAN replication is enabled for the cache named cacheNameWithPrefix . |
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, shutdown
createDistributedObject, destroyDistributedObject
getAllServiceNamespaces, isKnownServiceNamespace, prepareReplicationOperation
beforeMigration, commitMigration, prepareReplicationOperation, rollbackMigration
dispatchEvent
static 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 © 2018 Hazelcast, Inc.. All Rights Reserved.