public class DefaultVCacheCreationHandler extends Object implements VCacheCreationHandler
VCacheCreationHandler that enforces maximum allowed values.| Constructor and Description |
|---|
DefaultVCacheCreationHandler(int maxEntries,
Duration maxDefaultTtl,
int maxEntryCountHint,
ChangeRate defaultDataChangeRateHint,
ChangeRate defaultEntryGrowthRateHint) |
| Modifier and Type | Method and Description |
|---|---|
ExternalCacheSettings |
externalCacheCreation(ExternalCacheDetails details)
Validates the settings for a
ExternalCache. |
JvmCacheSettings |
jvmCacheCreation(JvmCacheDetails details)
Validates the settings for a
JvmCache. |
void |
requestCacheCreation(String name)
Validates the settings for a
RequestCache. |
public DefaultVCacheCreationHandler(int maxEntries,
Duration maxDefaultTtl,
int maxEntryCountHint,
ChangeRate defaultDataChangeRateHint,
ChangeRate defaultEntryGrowthRateHint)
public JvmCacheSettings jvmCacheCreation(JvmCacheDetails details) throws VCacheException
VCacheCreationHandlerJvmCache.jvmCacheCreation in interface VCacheCreationHandlerdetails - the proposed details for the cache.VCacheException - if the cache should not be createdpublic void requestCacheCreation(String name)
VCacheCreationHandlerRequestCache.requestCacheCreation in interface VCacheCreationHandlername - the proposed name for the cache.public ExternalCacheSettings externalCacheCreation(ExternalCacheDetails details)
VCacheCreationHandlerExternalCache.externalCacheCreation in interface VCacheCreationHandlerdetails - the proposed details for the cache.Copyright © 2016 Atlassian. All rights reserved.