@ManagedResource(value="Reaper for WorkerThreads") public class WorkerThreadReaper extends AbstractReaper<com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread>
Constructor and Description |
---|
WorkerThreadReaper() |
Modifier and Type | Method and Description |
---|---|
int |
getAbortAttempts() |
int |
getAbortNowAttempts() |
int |
getInterruptAttempts() |
protected com.levigo.util.log.Logger |
getLogger() |
protected String |
getName() |
protected void |
reapAllObjectsOnShutdown() |
protected boolean |
reapObject(com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread thread,
int attempt) |
void |
setAbortAttempts(int abortAttempts) |
void |
setAbortNowAttempts(int abortNowAttempts) |
void |
setInterruptAttempts(int interruptAttempts) |
afterPropertiesSet, destroy, enqueue, enqueue, getEnqueuedObjectCount, getEnqueuedObjects, getObjectName, getTimeInterval, run, setTimeInterval
protected boolean reapObject(com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread thread, int attempt)
reapObject
in class AbstractReaper<com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread>
protected void reapAllObjectsOnShutdown()
reapAllObjectsOnShutdown
in class AbstractReaper<com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread>
@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Worker#abort()") public void setAbortAttempts(int abortAttempts)
abortAttempts
- the abortAttempts to set@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Worker#abort()") public int getAbortAttempts()
@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Worker#abortNow()") public void setAbortNowAttempts(int abortNowAttempts)
abortNowAttempts
- the abortNowAttempts to set@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Worker#abortNow()") public int getAbortNowAttempts()
@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Thread#interrupt()") public void setInterruptAttempts(int interruptAttempts)
interruptAttempts
- the interruptAttempts to set@ManagedAttribute(defaultValue="5", description="Number of attempts that will use Thread#interrupt()") public int getInterruptAttempts()
protected String getName()
getName
in class AbstractReaper<com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread>
protected com.levigo.util.log.Logger getLogger()
getLogger
in class AbstractReaper<com.levigo.jadice.server.core.internal.JMSServerJob.WorkerThread>
Copyright © 2016 levigo holding gmbh. All rights reserved.