CreatePolicy Constructor (Int32, Boolean, ObjectPreemptionPriority, Object, Boolean)

ScaleOut Software NamedCache API
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.1.0.0
Syntax

public CreatePolicy(
	int timeoutMinutes,
	bool isAbsoluteTimeout,
	ObjectPreemptionPriority preemptionPriority,
	Object[] dependencies,
	bool allowReplication
)

Parameters

timeoutMinutes
Type: SystemInt32
Number of minutes before the object expires. 0 for an infinite timeout.
isAbsoluteTimeout
Type: SystemBoolean
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.ClientObjectPreemptionPriority
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: SystemObject
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: SystemBoolean
Indicates whether the object to be added to the cache will be subject to GeoServer cross-store "push" replication.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if timeoutMinutes is set to a value less than 0 or greater than 69,905.
See Also

Reference