public interface CachingFeatureFactory<FT extends FeatureServiceFeature,QT> extends FeatureFactory<FT,QT>
createFeatures request the CachingFeatureFactory may cache features upon initialisation
and/or upon each request to the createFeatures operation. If the factory is able to cache all features
upon initialisation (e.g. when loading small GML or SHP files), the createFeatures request is always executed
on the cache.FeatureFactory.TooManyFeaturesException| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes the internal cache and causes a re-allocate of the features upon the next
createFeatures()
request. |
int |
getMaxCachedFeatureCount()
Returns the maximum number of features that can be allocated and cached by this feature factory.
|
boolean |
isLazy()
Denotes if the features are allocated and cached during initialisation or during the first invocation of
the
createFeatures() operation. |
void |
setMaxCachedFeatureCount(int maxCachedFeatureCount)
Sets the maximum number of features that can be allocated and cached by this feature factory.
|
clone, createAttributes, createFeatures, createFeatures, createNewFeature, getFeatureCount, getLastCreatedFeatures, getLayerProperties, getMaxFeatureCount, setLayerName, setLayerProperties, setMaxFeatureCount, setSLDStyleboolean isLazy()
createFeatures() operation. If this operation returns false it is stronly advised to
instantiate this factory in a separate thread.true if the cached features a allocated upon the first request to
createFeatures()void flush()
createFeatures()
request.int getMaxCachedFeatureCount()
void setMaxCachedFeatureCount(int maxCachedFeatureCount)
maxFeatureCount and is applied to all available features regardless if
they may fall into the specified BoundingBox or not.
If during allocation the maximum number is reached the factory throws a TooManyFeaturesException.
maxCachedFeatureCount - maximum number of features that can be cachedFeatureFactory.setMaxFeatureCount(int)Copyright © 2012–2026 cismet GmbH. All rights reserved.