public class RequestTimeThreadLocal extends Object
| Constructor and Description | 
|---|
| RequestTimeThreadLocal() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | clearTime()Clears the stored value of the thread-local. | 
| static long | getTime()Retrieves the value of the request time thread-local. | 
| static Date | getTimeOrNow()Returns the value of the request time thread-local converted to a new Date object. | 
| static void | setTime(long currentTimeMillis)Sets the value of the thread-local. | 
public static void setTime(long currentTimeMillis)
currentTimeMillis - the timestamp to store, measured in milliseconds since the epoch
                          defined by Date(long).public static void clearTime()
setTime(long).public static long getTime()
Date(long).public static Date getTimeOrNow()
Copyright © 2003–2022 Atlassian. All rights reserved.