InstanceLockedExceptionAction 枚举

定义

包含一些选项,这些选项指定,如果 SQL 持久性提供程序在尝试锁定实例时收到异常,它应采取什么操作。Contains options that specify what action the SQL persistence provider should take when it receives an exception when trying to lock an instance.

public enum class InstanceLockedExceptionAction
public enum InstanceLockedExceptionAction
type InstanceLockedExceptionAction = 
Public Enum InstanceLockedExceptionAction
继承
InstanceLockedExceptionAction

字段

AggressiveRetry 2

指定持久性提供程序使用连续尝试之间指数规律增大的延迟重新尝试锁定实例。Specifies that the persistence provider reattempts to lock an instance with an exponentially increasing delay between successive attempts. 持久性提供程序在序列结尾(重试预定义的次数后)将 InstanceLockedException 传递给调用方。The persistence provider passes the InstanceLockedException to the caller at the end of the sequence (after retrying predefined number of times).

BasicRetry 1

指定持久性提供程序将使用线性重试间隔重新尝试锁定实例。Specifies that the persistence provider reattempts to lock the instance with a linear retry interval. 持久性提供程序在序列结尾(重试预定义的次数后)将 InstanceLockedException 传递给调用方。The persistence provider passes the InstanceLockedException to the caller at the end of the sequence (after retrying predefined number of times).

NoRetry 0

指定持久性提供程序在实例已由另一个宿主锁定的情况下不重新尝试锁定该实例。Specifies that the persistence provider does not reattempt to lock an instance if the instance is already locked by another host.

适用于