Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws
Class SDKGlobalConfiguration

java.lang.Object
  extended by com.amazonaws.SDKGlobalConfiguration

public class SDKGlobalConfiguration
extends Object

SDKGlobalConfiguration is to configure any global settings


Constructor Summary
SDKGlobalConfiguration()
           
 
Method Summary
static int getGlobalTimeOffset()
          Gets the global time offset.
static void setGlobalTimeOffset(int timeOffset)
          Sets the global time offset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDKGlobalConfiguration

public SDKGlobalConfiguration()
Method Detail

setGlobalTimeOffset

public static void setGlobalTimeOffset(int timeOffset)
Sets the global time offset. If this value is set then all the subsequent requests will use this value to generate timestamps. To adjust clock skew per request use Request.setTimeOffset(int)

Parameters:
timeOffset - the time difference between local client and server

getGlobalTimeOffset

public static int getGlobalTimeOffset()
Gets the global time offset. See Request.getTimeOffset() if global time offset is not set.

Returns:
globalTimeOffset an AtomicInteger that holds the value of time offset


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.