|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl
public class PerthreadManagerImpl
Constructor Summary | |
---|---|
PerthreadManagerImpl(org.slf4j.Logger logger)
|
Method Summary | ||
---|---|---|
void |
addThreadCleanupListener(ThreadCleanupListener listener)
Adds a listener to the hub. |
|
void |
cleanup()
Instructs the hub to notify all its listeners (for the current thread). |
|
|
createValue()
Creates a value using a unique internal key. |
|
|
invoke(Invokable<T> invokable)
Returns the result from the invocation, providing a try...finally to cleanup after. |
|
void |
registerForShutdown(RegistryShutdownHub hub)
|
|
void |
run(Runnable runnable)
Invokes Runnable.run() , providing a try...finally to cleanup after. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerthreadManagerImpl(org.slf4j.Logger logger)
Method Detail |
---|
public void registerForShutdown(RegistryShutdownHub hub)
public void addThreadCleanupListener(ThreadCleanupListener listener)
PerthreadManager
PerthreadManager.cleanup()
.
addThreadCleanupListener
in interface PerthreadManager
listener
- to addpublic void cleanup()
cleanup
in interface PerthreadManager
public <T> PerThreadValue<T> createValue()
PerthreadManager
createValue
in interface PerthreadManager
public void run(Runnable runnable)
PerthreadManager
Runnable.run()
, providing a try...finally to cleanup after.
run
in interface PerthreadManager
public <T> T invoke(Invokable<T> invokable)
PerthreadManager
invoke
in interface PerthreadManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |