|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsrc.java.BackgroundThreadManager
class BackgroundThreadManager
Field Summary | |
---|---|
private static Logger |
log
|
private BlockingQueue |
queue
|
private SessionFactory |
sessionFactory
|
private AtomicBoolean |
stop
|
private AtomicInteger |
tasksPerDrain
|
private AtomicInteger |
threadCount
|
private ThreadFactory |
threadFactory
|
Constructor Summary | |
BackgroundThreadManager()
|
Method Summary | |
---|---|
private boolean
|
bindSession()
|
protected java.lang.Thread
|
createNewQueueThread()
|
protected java.lang.Thread
|
createNewThread(java.lang.Runnable r)
|
protected java.lang.Runnable
|
createRunnable()
|
private static void
|
fireThreadException(java.lang.Exception e)
|
BlockingQueue
|
getQueue()
|
SessionFactory
|
getSessionFactory()
|
int
|
getTasksPerDrain()
|
int
|
getThreadCount()
|
ThreadFactory
|
getThreadFactory()
|
private static boolean
|
missesExplicitExceptionHandler(java.lang.Thread thread)
Checks whether the current thread has an exception handler set, which is different from the implicit one (i.e. thread's thread group) |
private java.lang.Runnable
|
nextRunnable(List tasks, int size)
|
void
|
queueRunnable(java.lang.Runnable r)
|
void
|
setQueue(BlockingQueue newQueue)
|
void
|
setSessionFactory(SessionFactory newSessionFactory)
|
void
|
setTasksPerDrain(int newTasksPerDrain)
|
void
|
setThreadCount(int newThreadCount)
|
void
|
setThreadFactory(ThreadFactory threadFactory)
|
void
|
start()
|
void
|
stop()
|
private void
|
unbindSession()
|
Methods inherited from class java.lang.Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
private static final Logger log
private BlockingQueue queue
private SessionFactory sessionFactory
private final AtomicBoolean stop
private final AtomicInteger tasksPerDrain
private final AtomicInteger threadCount
private ThreadFactory threadFactory
Constructor Detail |
---|
BackgroundThreadManager()
Method Detail |
---|
private boolean bindSession()
protected java.lang.Thread createNewQueueThread()
protected java.lang.Thread createNewThread(java.lang.Runnable r)
protected java.lang.Runnable createRunnable()
private static void fireThreadException(java.lang.Exception e)
public BlockingQueue getQueue()
public SessionFactory getSessionFactory()
public int getTasksPerDrain()
public int getThreadCount()
public ThreadFactory getThreadFactory()
private static boolean missesExplicitExceptionHandler(java.lang.Thread thread)
private java.lang.Runnable nextRunnable(List tasks, int size)
public void queueRunnable(java.lang.Runnable r)
@Required public void setQueue(BlockingQueue newQueue)
@Required public void setSessionFactory(SessionFactory newSessionFactory)
public void setTasksPerDrain(int newTasksPerDrain)
public void setThreadCount(int newThreadCount)
@Required public void setThreadFactory(ThreadFactory threadFactory)
public void start()
public void stop()
private void unbindSession()
Groovy Documentation