Package com.amazonaws
Class SDKGlobalTime
- java.lang.Object
-
- com.amazonaws.SDKGlobalTime
-
public class SDKGlobalTime extends Object
Used for clock skew adjustment between the client JVM where the SDK is run, and the server side.
-
-
Constructor Summary
Constructors Constructor Description SDKGlobalTime()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getGlobalTimeOffset()
Gets the global time difference in seconds between the running JVM and AWS.static void
setGlobalTimeOffset(int timeOffset)
Sets the global time difference in seconds between the running JVM and AWS.
-
-
-
Method Detail
-
setGlobalTimeOffset
public static void setGlobalTimeOffset(int timeOffset)
Sets the global time difference in seconds between the running JVM and AWS. If this value is set then all the subsequent instantiation of anAmazonHttpClient
will start using this value to generate timestamps.- Parameters:
timeOffset
- the time difference in seconds between the running JVM and AWS
-
getGlobalTimeOffset
public static int getGlobalTimeOffset()
Gets the global time difference in seconds between the running JVM and AWS. SeeRequest#getTimeOffset()
if global time offset is not set.
-
-