Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.55 KB

File metadata and controls

48 lines (38 loc) · 1.55 KB
title getLockTimeout Method (SQLServerDataSource) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.suite sql
ms.technology connectivity
ms.tgt_pltfrm
ms.topic conceptual
apiname
SQLServerDataSource.getLockTimeout
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 676094e9-ec18-4524-9b21-1f9c5b16dd52
caps.latest.revision 11
author MightyPen
ms.author genemi
manager craigg

getLockTimeout Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns an int value that indicates the number of milliseconds that the database will wait before reporting a lock time out.

Syntax

  
public int getLockTimeout()  

Return Value

An int value that contains the number of milliseconds that the database will wait.

Remarks

The lock time out is the number of milliseconds to wait before the database reports a lock time out. The default value of -1 means that it will wait indefinitely. If specified, this value will be the default for all statements on the connection.

Note

A value of 0 means no wait. If the lockTimeout property is not set, the getLockTimeout method returns the default value of -1.

See Also

SQLServerDataSource Members
SQLServerDataSource Class