org.mentalog
Class AsyncThread

java.lang.Object
  extended by org.mentalog.AsyncThread

public class AsyncThread
extends Object


Constructor Summary
AsyncThread()
           
 
Method Summary
static void closeLater(Logger logger, boolean lazySet)
           
static void drainAndStop()
           
static void flush(boolean lazySet)
           
static LogEvent getLogEvent(Logger logger)
           
static void init(boolean consumerLazySet)
           
static void kill()
           
static void logLater(Logger logger, boolean lazySet, Object... objs)
           
static void rollLater(Logger logger, boolean lazySet)
           
static void setCapacity(int capacity)
           
static void setConsumerWaitStrategy(org.mentaqueue.wait.WaitStrategy strategy)
           
static void setPriority(int priority)
           
static void setProducerWaitStrategy(org.mentaqueue.wait.WaitStrategy strategy)
           
static void start()
           
static Thread thread()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncThread

public AsyncThread()
Method Detail

setCapacity

public static void setCapacity(int capacity)

setPriority

public static void setPriority(int priority)

setConsumerWaitStrategy

public static void setConsumerWaitStrategy(org.mentaqueue.wait.WaitStrategy strategy)

setProducerWaitStrategy

public static void setProducerWaitStrategy(org.mentaqueue.wait.WaitStrategy strategy)

init

public static void init(boolean consumerLazySet)

thread

public static Thread thread()

start

public static void start()

getLogEvent

public static final LogEvent getLogEvent(Logger logger)

flush

public static final void flush(boolean lazySet)

logLater

public static final void logLater(Logger logger,
                                  boolean lazySet,
                                  Object... objs)

closeLater

public static final void closeLater(Logger logger,
                                    boolean lazySet)

rollLater

public static final void rollLater(Logger logger,
                                   boolean lazySet)

drainAndStop

public static void drainAndStop()

kill

public static void kill()


Copyright © 2013. All Rights Reserved.