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:

public int MaxLockAttempts { get; set; }

Property Value

Type: Int32

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

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