public final class SdkThreadLocals extends Object
ThreadLocalstorage within the AWS SDK.
ThreadLocal removal is especially relevant when the AWS SDK is used
in an application server that manages a pool of threads across many
applications (for example Tomcat or Glassfish). If a
not cleared on application shutdown and the
ThreadLocal value is a
class from the application classloader then the application classloader
cannot be garbage collected until the
ThreadLocal is set again or the thread
is disposed of (Glassfish attempts thread renewal on occasion to help with
|Modifier and Type||Method and Description|
Removes the current thread's values for all
public static void remove()
ThreadLocals used by the AWS SDK.
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.