org.kuali.rice.core.util
Class ThreadLocalTimer

java.lang.Object
  extended by org.kuali.rice.core.util.ThreadLocalTimer

public class ThreadLocalTimer
extends Object

Thread Local Timer for Tread Safe Request Logging RequestLoggingFilter

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static ThreadLocal<Long> startTimeThreadLocal
          startTimeThreadLocal ThreadLocal
 
Constructor Summary
ThreadLocalTimer()
           
 
Method Summary
static long getStartTime()
          Returns startTimeThreadLocal as long since epoch
static void setStartTime(long dateTime)
          Sets startTimeThreadLocal to the given long since epoch.
static void unset()
          Cleanup, startTimeThreadLocal.remove()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTimeThreadLocal

public static ThreadLocal<Long> startTimeThreadLocal
startTimeThreadLocal ThreadLocal

Constructor Detail

ThreadLocalTimer

public ThreadLocalTimer()
Method Detail

getStartTime

public static long getStartTime()
Returns startTimeThreadLocal as long since epoch

Returns:
long since epoch

setStartTime

public static void setStartTime(long dateTime)
Sets startTimeThreadLocal to the given long since epoch.

Parameters:
dateTime - long since epoch

unset

public static void unset()
Cleanup, startTimeThreadLocal.remove()



Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.