UpdateLockingMode Enumeration

ScaleOut Software NamedCache API
Enumeration used to control locking behavior during update operations.

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

public enum UpdateLockingMode

  Member nameValueDescription
None0 Indicates that the StateServer should not release an existing pessimistic lock if one is currently being held. Also, indicates that the StateServer should perform the update regardless of the version of the object that is sent to the server (that is, this mode indicates that optimistic locking should not be used).
UnlockAfterUpdate1 If the StateServer is holding a pessimistic lock for the corresponding object then the lock will be released when the Update operations completes. If the StateServer is not holding a pessimistic lock for the object then this option will be ignored.
UpdateIfSameVersion2 (Optimistic locking.) Indicates that the StateServer should only perform an update if the version version of the object sent by the object matches the version currently stored in the StateServer. Objects that use optimistic locking must implement the IOptimisticConcurrencyVersionHolder interface.
See Also