Top Description Fields Constructors Methods
org.glassfish.grizzly.http.server.accesslog

pack-priv Class SimpleDateFormatThreadLocal

extends ThreadLocal<SimpleDateFormat>
Class Inheritance
Annotations
@Deprecated
Imports
java.text.SimpleDateFormat

Deprecated

Simple utility class to keep pre-configured SimpleDateFormats around on a per-Thread basis. The clone() method will be used to generate new instances.
Authors
Pier Fumagalli, USRZ.com

Field Summary

Modifier and TypeField and Description
private final SimpleDateFormat

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SimpleDateFormat
initialValue()

Overrides java.lang.ThreadLocal.initialValue.

Returns the current thread's "initial value" for this thread-local variable.

Inherited from java.lang.ThreadLocal:
getremovesetwithInitial

Field Detail

formatback to summary
private final SimpleDateFormat format

Constructor Detail

SimpleDateFormatThreadLocalback to summary
pack-priv SimpleDateFormatThreadLocal(String format)

Method Detail

initialValueback to summary
protected SimpleDateFormat initialValue()

Overrides java.lang.ThreadLocal.initialValue.

Doc from java.lang.ThreadLocal.initialValue.

Returns the current thread's "initial value" for this thread-local variable. This method will be invoked the first time a thread accesses the variable with the get method, unless the thread previously invoked the set method, in which case the initialValue method will not be invoked for the thread. Normally, this method is invoked at most once per thread, but it may be invoked again in case of subsequent invocations of remove followed by get.

Annotations
@Override