public class ExternalScheme extends AbstractLocalCachingScheme<Object> implements BinaryStoreManagerBuilderCustomization
ExternalScheme class is responsible for building a fully configured instance of a ExternalCache.MapBuilder.Dependenciesm_serviceDependenciesDELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION| Constructor and Description |
|---|
ExternalScheme() |
| Modifier and Type | Method and Description |
|---|---|
BinaryStoreManagerBuilder |
getBinaryStoreManagerBuilder()
Obtains the
BinaryStoreManagerBuilder for the BinaryStoreManager. |
Seconds |
getExpiryDelay(com.tangosol.config.expression.ParameterResolver resolver)
Return the amount of time since the last update that entries are kept by the cache before being expired.
|
Units |
getHighUnits(com.tangosol.config.expression.ParameterResolver resolver)
Return the limit of cache size.
|
UnitCalculatorBuilder |
getUnitCalculatorBuilder()
Return the UnitCalculatorBuilder used to build a UnitCalculator.
|
int |
getUnitFactor(com.tangosol.config.expression.ParameterResolver resolver)
Return the unit-factor element specifies the factor by which the units, low-units and high-units properties are adjusted.
|
protected SerializationCache |
instantiateSerializationCache(BinaryStore store, int cMax, boolean fBinaryMap)
Construct an SerializationCache using the specified parameters.
|
protected SerializationCache |
instantiateSerializationCache(BinaryStore store, int cMax, ClassLoader loader)
Construct an SerializationCache using the specified parameters.
|
protected SerializationMap |
instantiateSerializationMap(BinaryStore store, boolean fBinaryMap)
Construct an SerializationMap using the specified parameters.
|
protected SerializationMap |
instantiateSerializationMap(BinaryStore store, ClassLoader loader)
Construct an SerializationMap using the specified parameters.
|
protected Map |
instantiateSerializationMap(com.tangosol.config.expression.ParameterResolver resolver, BinaryStore store, boolean fBinaryMap, ClassLoader loader, int cHighUnits, int cExpiryMillis)
Instantiate a SerializationMap, SerializationCache, SimpleSerializationMap, or any sub-class thereof.
|
protected SimpleSerializationMap |
instantiateSimpleSerializationMap(BinaryStore store, boolean fBinaryMap)
Construct a SimpleSerializationMap using the specified parameters.
|
protected SimpleSerializationMap |
instantiateSimpleSerializationMap(BinaryStore store, ClassLoader loader)
Construct a SimpleSerializationMap using the specified parameters.
|
Map |
realizeMap(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Realize a
Map based on the state of the MapBuilder, resolvable parameters and provided MapBuilder.Dependencies. |
void |
setBinaryStoreManagerBuilder(BinaryStoreManagerBuilder bldr)
Sets the
BinaryStoreManagerBuilder for the BinaryStoreManager. |
void |
setExpiryDelay(com.tangosol.config.expression.Expression<Seconds> expr)
Set the expiry delay.
|
void |
setHighUnits(com.tangosol.config.expression.Expression<Units> expr)
Set the high units.
|
void |
setUnitCalculatorBuilder(UnitCalculatorBuilder bldr)
Set the UnitCalculatorBuilder.
|
void |
setUnitFactor(com.tangosol.config.expression.Expression<Integer> expr)
Set the unit factor.
|
protected void |
validate(com.tangosol.config.expression.ParameterResolver resolver)
Validate the properties.
|
getCustomBuilder, getEventInterceptorBuilders, getServiceType, isRunningClusterNeeded, setCustomBuilderestablishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, setListenerBuildergetScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setApplicationContext, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXmlgetSchemeName, isAnonymous, setSchemeName, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetScopedServiceName, getServiceBuilder, getServiceName, isAutoStartgetSchemeName, isAnonymouspublic Map realizeMap(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Map based on the state of the MapBuilder, resolvable parameters and provided MapBuilder.Dependencies.realizeMap in interface MapBuilderrealizeMap in class AbstractCachingSchemeresolver - the ParameterResolverdependencies - the MapBuilder.Dependencies for realizing the MapMappublic BinaryStoreManagerBuilder getBinaryStoreManagerBuilder()
BinaryStoreManagerBuilder for the BinaryStoreManager.getBinaryStoreManagerBuilder in interface BinaryStoreManagerBuilderCustomizationBinaryStoreManagerBuilderpublic void setBinaryStoreManagerBuilder(BinaryStoreManagerBuilder bldr)
BinaryStoreManagerBuilder for the BinaryStoreManager.setBinaryStoreManagerBuilder in interface BinaryStoreManagerBuilderCustomizationbldr - the BinaryStoreManagerBuilderpublic Seconds getExpiryDelay(com.tangosol.config.expression.ParameterResolver resolver)
resolver - the ParameterResolver@Injectable public void setExpiryDelay(com.tangosol.config.expression.Expression<Seconds> expr)
expr - the expiry delay expressionpublic Units getHighUnits(com.tangosol.config.expression.ParameterResolver resolver)
resolver - the ParameterResolver@Injectable public void setHighUnits(com.tangosol.config.expression.Expression<Units> expr)
expr - the high units expressionpublic UnitCalculatorBuilder getUnitCalculatorBuilder()
@Injectable(value="unit-calculator") public void setUnitCalculatorBuilder(UnitCalculatorBuilder bldr)
bldr - the UnitCalculatorBuilderpublic int getUnitFactor(com.tangosol.config.expression.ParameterResolver resolver)
resolver - the ParameterResolver@Injectable public void setUnitFactor(com.tangosol.config.expression.Expression<Integer> expr)
expr - the unit factor expressionprotected Map instantiateSerializationMap(com.tangosol.config.expression.ParameterResolver resolver, BinaryStore store, boolean fBinaryMap, ClassLoader loader, int cHighUnits, int cExpiryMillis)
resolver - the ParmeterResolverstore - a BinaryStore to use to write serialized data tofBinaryMap - true if the only data written to the Map will already be in Binary formloader - the ClassLoader to use (if not a Binary map)cHighUnits - the max size in units for the serialization cachecExpiryMillis - the expiry time in milliseconds for the cacheprotected SerializationCache instantiateSerializationCache(BinaryStore store, int cMax, ClassLoader loader)
This method exposes a corresponding SerializationCache constructor and is provided for the express purpose of allowing its override.
protected SerializationCache instantiateSerializationCache(BinaryStore store, int cMax, boolean fBinaryMap)
This method exposes a corresponding SerializationCache constructor and is provided for the express purpose of allowing its override.
protected SerializationMap instantiateSerializationMap(BinaryStore store, ClassLoader loader)
This method exposes a corresponding SerializationMap constructor and is provided for the express purpose of allowing its override.
protected SerializationMap instantiateSerializationMap(BinaryStore store, boolean fBinaryMap)
This method exposes a corresponding SerializationMap constructor and is provided for the express purpose of allowing its override.
protected SimpleSerializationMap instantiateSimpleSerializationMap(BinaryStore store, ClassLoader loader)
This method exposes a corresponding SerializationMap constructor and is provided for the express purpose of allowing its override.
protected SimpleSerializationMap instantiateSimpleSerializationMap(BinaryStore store, boolean fBinaryMap)
This method exposes a corresponding SerializationMap constructor and is provided for the express purpose of allowing its override.
protected void validate(com.tangosol.config.expression.ParameterResolver resolver)
validate in class AbstractCachingSchemeresolver - the ParameterResolver needed to resolve expressions