com.hazelcast.cache.impl
Interface ICacheService

All Superinterfaces:
EventPublishingService<Object,CacheEventListener>, ManagedService, MigrationAwareService, RemoteService
All Known Implementing Classes:
AbstractCacheService, CacheService

public interface ICacheService
extends ManagedService, RemoteService, MigrationAwareService, EventPublishingService<Object,CacheEventListener>


Field Summary
static String SERVICE_NAME
          Service name
 
Method Summary
 CacheConfig createCacheConfigIfAbsent(CacheConfig config)
           
 CacheStatisticsImpl createCacheStatIfAbsent(String name)
           
 CacheConfig deleteCacheConfig(String name)
           
 void deleteCacheStat(String name)
           
 void deregisterAllListener(String name)
           
 boolean deregisterListener(String name, String registrationId)
           
 void destroyCache(String objectName, boolean isLocal, String callerUuid)
           
 CacheSimpleConfig findCacheConfig(String simpleName)
           
 CacheConfig getCacheConfig(String name)
           
 Collection<CacheConfig> getCacheConfigs()
           
 CacheOperationProvider getCacheOperationProvider(String nameWithPrefix, InMemoryFormat storageType)
          Creates cache operations according to the storage-type of the cache
 ICacheRecordStore getCacheRecordStore(String name, int partitionId)
           
 NodeEngine getNodeEngine()
           
 ICacheRecordStore getOrCreateCache(String name, int partitionId)
           
 CachePartitionSegment getSegment(int partitionId)
           
 CacheStatisticsImpl getStatistics(String name)
           
 void publishEvent(String cacheName, CacheEventSet eventSet, int orderKey)
           
 void publishEvent(String cacheName, CacheEventType eventType, Data dataKey, Data dataValue, Data dataOldValue, boolean isOldValueAvailable, int orderKey, int completionId)
           
 String registerListener(String distributedObjectName, CacheEventListener listener)
           
 void setManagementEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
           
 void setStatisticsEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
           
 
Methods inherited from interface com.hazelcast.spi.ManagedService
init, reset, shutdown
 
Methods inherited from interface com.hazelcast.spi.RemoteService
createDistributedObject, destroyDistributedObject
 
Methods inherited from interface com.hazelcast.spi.MigrationAwareService
beforeMigration, clearPartitionReplica, commitMigration, prepareReplicationOperation, rollbackMigration
 
Methods inherited from interface com.hazelcast.spi.EventPublishingService
dispatchEvent
 

Field Detail

SERVICE_NAME

static final String SERVICE_NAME
Service name

See Also:
Constant Field Values
Method Detail

getOrCreateCache

ICacheRecordStore getOrCreateCache(String name,
                                   int partitionId)

getCacheRecordStore

ICacheRecordStore getCacheRecordStore(String name,
                                      int partitionId)

getSegment

CachePartitionSegment getSegment(int partitionId)

destroyCache

void destroyCache(String objectName,
                  boolean isLocal,
                  String callerUuid)

findCacheConfig

CacheSimpleConfig findCacheConfig(String simpleName)

createCacheConfigIfAbsent

CacheConfig createCacheConfigIfAbsent(CacheConfig config)

deleteCacheConfig

CacheConfig deleteCacheConfig(String name)

createCacheStatIfAbsent

CacheStatisticsImpl createCacheStatIfAbsent(String name)

deleteCacheStat

void deleteCacheStat(String name)

setStatisticsEnabled

void setStatisticsEnabled(CacheConfig cacheConfig,
                          String cacheNameWithPrefix,
                          boolean enabled)

setManagementEnabled

void setManagementEnabled(CacheConfig cacheConfig,
                          String cacheNameWithPrefix,
                          boolean enabled)

getCacheConfig

CacheConfig getCacheConfig(String name)

getCacheConfigs

Collection<CacheConfig> getCacheConfigs()

publishEvent

void publishEvent(String cacheName,
                  CacheEventType eventType,
                  Data dataKey,
                  Data dataValue,
                  Data dataOldValue,
                  boolean isOldValueAvailable,
                  int orderKey,
                  int completionId)

publishEvent

void publishEvent(String cacheName,
                  CacheEventSet eventSet,
                  int orderKey)

getNodeEngine

NodeEngine getNodeEngine()

registerListener

String registerListener(String distributedObjectName,
                        CacheEventListener listener)

deregisterListener

boolean deregisterListener(String name,
                           String registrationId)

deregisterAllListener

void deregisterAllListener(String name)

getStatistics

CacheStatisticsImpl getStatistics(String name)

getCacheOperationProvider

CacheOperationProvider getCacheOperationProvider(String nameWithPrefix,
                                                 InMemoryFormat storageType)
Creates cache operations according to the storage-type of the cache



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.