Package org.jgroups.util
Interface ThreadDecorator
-
public interface ThreadDecoratorAn object that can alter the state of a thread when it receives a callback from aThreadManagernotifying it that the thread has been created or released from use.- Version:
- $Id: ThreadDecorator.java,v 1.1.2.1 2008/05/26 09:14:40 belaban Exp $
- Author:
- Brian Stansberry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidthreadCreated(java.lang.Thread thread)Notification thatthreadhas just been created.voidthreadReleased(java.lang.Thread thread)Notification thatthreadhas just been released from use (e.g.
-
-
-
Method Detail
-
threadCreated
void threadCreated(java.lang.Thread thread)
Notification thatthreadhas just been created.- Parameters:
thread- the thread
-
threadReleased
void threadReleased(java.lang.Thread thread)
Notification thatthreadhas just been released from use (e.g. returned to a thread pool after executing a task).- Parameters:
thread- the thread
-
-