Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
设置活动超时长度(以秒为单位)。
abstract void SyncParms.setLivenessTimeout( int seconds ) throws ULjException
seconds 新活动超时值。
活动超时是服务器允许远程空闲的时间长度。如果远程端在 l 秒内未与服务器通信,则服务器会认为远程端已丢失连接并终止同步。远程端将定期向服务器自动发送消息,以保持连接处于活动状态。
如果设置负值,则会抛出异常。该值可由 MobiLink 服务器更改,而不进行任何通知。如果该值设置得过低或过高,更改就会发生。
BlackBerry/J2SE/J2ME 平台的缺省值为 100 秒,对于 Android 平台,缺省值为 120 秒。