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.Date(long)
.public static void clearTime()
setTime(long)
.public static long getTime()
Date.Date(long)
.public static Date getTimeOrNow()
Copyright © 2003–2017 Atlassian. All rights reserved.