NamedCacheMaxLockAttempts Property

ScaleOut Software NamedCache API
Gets/Sets the number of lock attempts. The default is 20000 attempts.

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

public int MaxLockAttempts { get; set; }

Property Value

Type: Int32
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the property is set to a value less than 1.
Remarks

The NamedCache will repeatedly attempt to acquire a lock in situations where another client already has a lock on the object. This property determines the number of times the NamedCache attempts to acquire a lock when a locking operation is performed before the method throws a ObjectLockedException. AcquireLock(CachedObjectId), getting via ItemCachedObjectId (when UseLocking is true), and Retrieve(true) all repeatedly attempt to acquire locks in this manner. The default is 20000 attempts.

Use the LockRetryInterval property to set the amount of time between retries.

See Also

Reference