NamedCacheLockRetryInterval Property

ScaleOut Software NamedCache API
Gets/Sets milliseconds between lock retries. Default is 5 milliseconds.

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

public int LockRetryInterval { get; set; }

Property Value

Type: Int32

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

The NamedCache will repeatedly attempt to acquire a lock in situations where another client already has a lock on the object. The LockRetryInterval property gets or sets the amount of time (in milliseconds) between attempts to acquire an exclusive lock on the cached object using AcquireLock(CachedObjectId), getting via ItemCachedObjectId (when UseLocking is true), and Retrieve(true). The default value is 5 milliseconds.

The number of retries is determined by the MaxLockAttempts property.

See Also