SetTimeStampRetryCount
页面操作
需要 Enterprise 版。在 Delphi、C++Builder 和 Lazarus 代码中,请将库创建为 TPDFlibEnterprise(单元 PDFlibEnterprise);Enterprise 版的 DLL 和 ActiveX 构建原样提供该类。其他版本保留此方法,它返回 0、空字符串或 False,并将 LastErrorCode 设置为 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)
描述
配置 TSA 重试次数
语法
Delphi
Function SetTimeStampRetryCount(RetryCount: Integer): Integer; Virtual;ActiveX
Function PDFlib::SetTimeStampRetryCount(RetryCount As Long) As LongDLL
int DLSetTimeStampRetryCount(int InstanceID, int RetryCount);参数
| RetryCount | 传输失败或 5xx 响应后额外尝试 0..10 次;大于 10 的值会限制为 10 |
|---|
返回值
策略已存储时为 1,输入为负数时为 0
备注
在重复 POST 前按线性退避等待(250 ms 乘以尝试次数);获取端将 0..10 范围外的任何值视为单次尝试