com.atlassian.core.logging
Class ThreadLocalErrorCollection

java.lang.Object
  extended by com.atlassian.core.logging.ThreadLocalErrorCollection

public class ThreadLocalErrorCollection
extends java.lang.Object

A simple ThreadLocal stack to prevent circular content includes.


Field Summary
static int DEFAULT_LIMIT
           
 
Constructor Summary
ThreadLocalErrorCollection()
           
 
Method Summary
static void add(long timeInMillis, org.apache.log4j.spi.LoggingEvent e)
           
static void clear()
           
static void disable()
           
static void enable()
           
static int getLimit()
           
static java.util.List getList()
           
static boolean isEmpty()
           
static boolean isEnabled()
           
static void setLimit(int limit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIMIT

public static final int DEFAULT_LIMIT
See Also:
Constant Field Values
Constructor Detail

ThreadLocalErrorCollection

public ThreadLocalErrorCollection()
Method Detail

add

public static void add(long timeInMillis,
                       org.apache.log4j.spi.LoggingEvent e)

clear

public static void clear()

getList

public static java.util.List getList()

isEmpty

public static boolean isEmpty()

getLimit

public static int getLimit()

setLimit

public static void setLimit(int limit)

isEnabled

public static boolean isEnabled()

enable

public static void enable()

disable

public static void disable()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.