本文整理了Java中com.amazonaws.Request.getTimeOffset
方法的一些代码示例,展示了Request.getTimeOffset
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getTimeOffset
方法的具体详情如下:
包路径:com.amazonaws.Request
类名称:Request
方法名:getTimeOffset
[英]Returns the optional value for time offset for this request. This will be used by the signer to adjust for potential clock skew. Value is in seconds, positive values imply the current clock is "fast", negative values imply clock is slow.
[中]返回此请求的时间偏移的可选值。这将被签名者用来调整潜在的时钟偏差。值以秒为单位,正值表示当前时钟“快”,负值表示时钟慢。
代码示例来源:origin: aws-amplify/aws-sdk-android
protected int getTimeOffset(Request<?> request) {
int timeOffset = request.getTimeOffset();
if (SDKGlobalConfiguration.getGlobalTimeOffset() != 0) {
// if global time offset is set then use that (For clock skew
// issues)
timeOffset = SDKGlobalConfiguration.getGlobalTimeOffset();
}
return timeOffset;
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-core
protected int getTimeOffset(Request<?> request) {
int timeOffset = request.getTimeOffset();
if (SDKGlobalConfiguration.getGlobalTimeOffset() != 0) {
// if global time offset is set then use that (For clock skew
// issues)
timeOffset = SDKGlobalConfiguration.getGlobalTimeOffset();
}
return timeOffset;
}
代码示例来源:origin: com.gluonhq/aws-java-sdk-core
protected int getTimeOffset(Request<?> request) {
int timeOffset = request.getTimeOffset();
if (SDKGlobalConfiguration.getGlobalTimeOffset() != 0) {
// if global time offset is set then use that (For clock skew
// issues)
timeOffset = SDKGlobalConfiguration.getGlobalTimeOffset();
}
return timeOffset;
}
内容来源于网络,如有侵权,请联系作者删除!