Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLiteJ » UltraLiteJ 参考 » UltraLiteJ API 参考 » SyncParms 类

 

setLivenessTimeout 方法

设置活动超时长度(以秒为单位)。缺省值为 100 秒。

语法
abstract void SyncParms.setLivenessTimeout(
  int l
) throws ULjException
参数
  • l   新活动超时值。

注释

活动超时是服务器允许远程空闲的时间长度。如果远程端在 l 秒内未与服务器通信,则服务器会认为远程端已丢失连接并终止同步。远程端将定期向服务器自动发送消息,以保持连接处于活动状态。

如果设置负值,则会抛出异常。该值可由 MobiLink 服务器更改,而不进行任何通知。如果该值设置得过低或过高,更改就会发生。

另请参见