public class ExternalScheme extends AbstractLocalCachingScheme<Object> implements BinaryStoreManagerBuilderCustomization
ExternalScheme
class is responsible for building
a fully configured instance of a ExternalCache.MapBuilder.Dependencies
m_serviceDependencies
DELIM_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, setCustomBuilder
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, setListenerBuilder
getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
getSchemeName, isAnonymous, setSchemeName, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
getSchemeName, isAnonymous
public 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 MapBuilder
realizeMap
in class AbstractCachingScheme
resolver
- the ParameterResolver
dependencies
- the MapBuilder.Dependencies
for realizing the Map
Map
public BinaryStoreManagerBuilder getBinaryStoreManagerBuilder()
BinaryStoreManagerBuilder
for the BinaryStoreManager
.getBinaryStoreManagerBuilder
in interface BinaryStoreManagerBuilderCustomization
BinaryStoreManagerBuilder
public void setBinaryStoreManagerBuilder(BinaryStoreManagerBuilder bldr)
BinaryStoreManagerBuilder
for the BinaryStoreManager
.setBinaryStoreManagerBuilder
in interface BinaryStoreManagerBuilderCustomization
bldr
- the BinaryStoreManagerBuilder
public 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.
store
- the BinaryStore to use to write the serialized objects tocMax
- the maximum number of items to store in the binary storeloader
- the ClassLoader to use for deserializationSerializationCache
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.
store
- the BinaryStore to use to write the serialized objects tocMax
- the maximum number of items to store in the binary storefBinaryMap
- true indicates that this map will only manage
binary keys and valuesSerializationCache
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.
store
- the BinaryStore to use to write the serialized objects toloader
- the ClassLoader to use for deserializationSerializationMap
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.
store
- the BinaryStore to use to write the serialized objects tofBinaryMap
- true indicates that this map will only manage
binary keys and valuesSerializationMap
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.
store
- the BinaryStore to use to write the serialized objects toloader
- the ClassLoader to use for deserializationSimpleSerializationMap
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.
store
- the BinaryStore to use to write the serialized objects tofBinaryMap
- true indicates that this map will only manage
binary keys and valuesSimpleSerializationMap
protected void validate(com.tangosol.config.expression.ParameterResolver resolver)
validate
in class AbstractCachingScheme
resolver
- the ParameterResolver needed to resolve expressions