Class ThreadReaper

  • All Implemented Interfaces:
    SelfRegistering, Runnable, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.jmx.export.naming.SelfNaming

    @ManagedResource("Reaper for Threads")
    public class ThreadReaper
    extends AbstractReaper<Thread>
    • Constructor Detail

      • ThreadReaper

        public ThreadReaper()
    • Method Detail

      • setInterruptAttempts

        @ManagedAttribute(defaultValue="15",
                          description="Number of attempts that will use Thread#interrupt()")
        public void setInterruptAttempts​(int interruptAttempts)
        Parameters:
        interruptAttempts - the interruptAttempts to set
      • getInterruptAttempts

        @ManagedAttribute(defaultValue="15",
                          description="Number of attempts that will use Thread#interrupt()")
        public int getInterruptAttempts()
        Returns:
        the interruptAttempts