JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws

Class 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 Detail

      • SDKGlobalTime

        public SDKGlobalTime()
    • 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 an AmazonHttpClient 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. See Request#getTimeOffset() if global time offset is not set.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /