|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.util.concurrent.SynchronizedRestarter
public class SynchronizedRestarter
A class that handles restarts of components via multiple threads. Specifically, if a component needs to be restarted and several threads may demand a restart but only one thread should be allowed to restart the component, then use this class.
What this class guarantees is that several threads may come in while a component is being restarted, but they will block until the restart is complete. This is different from other techniques in that:
Constructor Summary | |
---|---|
SynchronizedRestarter()
|
Method Summary | |
---|---|
void |
restartComponent(Lifecycle component)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedRestarter()
Method Detail |
---|
public void restartComponent(Lifecycle component) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |