@ManagedResource(value="Reaper for Threads") public class ThreadReaper extends AbstractReaper<Thread>
Constructor and Description |
---|
ThreadReaper() |
Modifier and Type | Method and Description |
---|---|
int |
getInterruptAttempts() |
protected com.levigo.util.log.Logger |
getLogger() |
protected String |
getName() |
protected void |
reapAllObjectsOnShutdown() |
protected boolean |
reapObject(Thread thread,
int attempt) |
void |
setInterruptAttempts(int interruptAttempts) |
afterPropertiesSet, destroy, enqueue, enqueue, getEnqueuedObjectCount, getEnqueuedObjects, getObjectName, getReapedObjectCount, getTimeInterval, run, setTimeInterval
protected boolean reapObject(Thread thread, int attempt)
reapObject
in class AbstractReaper<Thread>
protected void reapAllObjectsOnShutdown()
reapAllObjectsOnShutdown
in class AbstractReaper<Thread>
@ManagedAttribute(defaultValue="15", description="Number of attempts that will use Thread#interrupt()") public void setInterruptAttempts(int interruptAttempts)
interruptAttempts
- the interruptAttempts to set@ManagedAttribute(defaultValue="15", description="Number of attempts that will use Thread#interrupt()") public int getInterruptAttempts()
protected String getName()
getName
in class AbstractReaper<Thread>
protected com.levigo.util.log.Logger getLogger()
getLogger
in class AbstractReaper<Thread>
Copyright © 2017 levigo holding gmbh. All rights reserved.