CreatePolicy Constructor (TimeSpan, Boolean, ObjectPreemptionPriority, Object, Boolean, Boolean, ICoherencyPolicy)

ScaleOut Software NamedCache API
Creates a CreatePolicy object.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public CreatePolicy(
	TimeSpan timeout,
	bool isAbsoluteTimeout,
	ObjectPreemptionPriority preemptionPriority,
	Object[] dependencies,
	bool allowReplication,
	bool allowRemoteAccess,
	ICoherencyPolicy defaultCoherencyPolicy
)

Parameters

timeout
Type: SystemTimeSpan
Time until the object expires, with a minimum granularity of one second. Use Zero 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.
allowRemoteAccess
Type: SystemBoolean
Indicates whether the object to be added to the cache will be accessible to remote stores via GeoServer "pull" replication.
defaultCoherencyPolicy
Type: Soss.ClientICoherencyPolicy
The policy determining how remote stores will refresh their proxies of this object. Currently supported policy types are NotifyCoherencyPolicy and PollingCoherencyPolicy. Setting this parameter to null prevents remote stores from automatically refreshing their proxies for this object.
Exceptions

ExceptionCondition
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

Reference