Table of Contents

Class LockLostException

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

A ScaleoutException specialization that indicates that a caller no longer has a lock on an object in the ScaleOut service.

[Serializable]
public class LockLostException : ScaleoutException, ISerializable
Inheritance
LockLostException
Implements
Inherited Members

Remarks

Locks can be lost for several reasons, including:

  • The lock timed out in the server due to inactivity (90 seconds, by default). Use RefreshExclusiveLockAsync(TKey, LockToken, CancellationToken) to periodically refresh long-held locks.
  • The lock ticket had already been used by another, earlier call to unlock the object.
  • The locked object had been removed (either by a management clear command or another caller who didn't honor the lock) and then was re-added prior to this request.

Constructors

LockLostException(SerializationInfo, StreamingContext)

Deserialization constructor. Recreate an LockLostException from a serialized stream.

LockLostException(string, int, string)

Create a new LockLostException.

LockLostException(string, int, string, string)

Create a new LockLostException.

LockLostException(string, string)

Create a new LockLostException.

LockLostException(string, string, string)

Create a new LockLostException.

LockLostException(string, string, string, Exception)

Create a new LockLostException.