Creates a CreatePolicy object with the specified policies for timeout, preemption priority, dependencies, and GeoServer push replication.
Objects will not be remotely accessible to a remote store via GeoServer pull replication.
Namespace: Soss.Client
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax
public CreatePolicy( TimeSpan timeout, bool isAbsoluteTimeout, ObjectPreemptionPriority preemptionPriority, Object[] dependencies, bool allowReplication )
Parameters
- timeout
- Type: System.TimeSpan
Time until the object expires, with a minimum granularity of one second. Use Zero for an infinite timeout. - isAbsoluteTimeout
- Type: System.Boolean
Indicates whether the timeout is an absolute expiration value or is a sliding expiration value that gets reset every time the object is accessed. - preemptionPriority
- Type: Soss.Client.ObjectPreemptionPriority
Indicates the priority of keeping the object in the cache during low-memory situations. Removable objects are removed from memory when memory runs low based on a least recently used algorithm. - dependencies
- Type:System.Object[]
Keys to objects on which the object being added depends. Items in the array must be of type string, byte[], Guid, CachedObjectId, or StateServerKey. An object can be dependent upon up to 2 parent objects. Keys to parents that do not exist in the store will be ignored. - allowReplication
- Type: System.Boolean
Indicates whether the object to be added to the cache will be subject to GeoServer cross-store "push" replication.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if timeout is set to a value less than 0 seconds or greater than 4,194,303 seconds (69,905 minutes). |
See Also