SqlDatabaseTransientErrorDetectionStrategy Class
- java.
lang. Object - ITransientErrorDetectionStrategy
- com.
microsoft. azure. elasticdb. core. commons. transientfaulthandling. SqlDatabaseTransientErrorDetectionStrategy
- com.
public class SqlDatabaseTransientErrorDetectionStrategy implements ITransientErrorDetectionStrategy
Provides the transient error detection logic for transient faults that are specific to SQL Database.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
isTransient(Exception ex)
Determines whether the specified exception represents a transient failure that can be compensated by a retry. |
Method Details
isTransient
public boolean isTransient(Exception ex)
Determines whether the specified exception represents a transient failure that can be compensated by a retry.
Overrides:
SqlDatabaseTransientErrorDetectionStrategy.isTransient(Exception ex)Parameters:
ex
- The exception object to be verified.
Returns:
true if the specified exception is considered as transient; otherwise, false.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java