at.molindo.utils.concurrent
Class FactoryThread.FactoryThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by at.molindo.utils.concurrent.FactoryThread.FactoryThreadGroup
All Implemented Interfaces:
Thread.UncaughtExceptionHandler
Enclosing class:
FactoryThread

public static class FactoryThread.FactoryThreadGroup
extends ThreadGroup


Constructor Summary
FactoryThread.FactoryThreadGroup(String groupName, int threads, FactoryThread.IRunnableFactory factory)
           
 
Method Summary
protected  void handleException(Throwable t, int consecutiveErrors, boolean terminate)
           
 FactoryThread.FactoryThreadGroup join()
           
 FactoryThread.FactoryThreadGroup join(long millis)
           
 FactoryThread.FactoryThreadGroup setInactive()
           
 FactoryThread.FactoryThreadGroup setMaxErrors(int maxErrors)
           
 FactoryThread.FactoryThreadGroup start()
           
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactoryThread.FactoryThreadGroup

public FactoryThread.FactoryThreadGroup(String groupName,
                                        @Nonnegative
                                        int threads,
                                        @Nonnull
                                        FactoryThread.IRunnableFactory factory)
Method Detail

setMaxErrors

public FactoryThread.FactoryThreadGroup setMaxErrors(int maxErrors)

start

public FactoryThread.FactoryThreadGroup start()

setInactive

public FactoryThread.FactoryThreadGroup setInactive()

join

public FactoryThread.FactoryThreadGroup join()
                                      throws InterruptedException
Throws:
InterruptedException

join

public FactoryThread.FactoryThreadGroup join(long millis)
                                      throws InterruptedException
Throws:
InterruptedException

handleException

protected void handleException(Throwable t,
                               int consecutiveErrors,
                               boolean terminate)


Copyright © 2011 Molindo GmbH. All Rights Reserved.