Package org.jgroups.util
Interface ThreadManager
-
- All Known Implementing Classes:
DefaultThreadFactory
,LazyThreadFactory
,ThreadManagerThreadPoolExecutor
,TimeScheduler
public interface ThreadManager
An object that manages threads and provides callbacks to aThreadDecorator
to allow it to alter their state.- Version:
- $Id: ThreadManager.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 ThreadDecorator
getThreadDecorator()
Gets the ThreadDecorator associated with this manager.void
setThreadDecorator(ThreadDecorator decorator)
Sets the ThreadDecorator associated this manager should use.
-
-
-
Method Detail
-
getThreadDecorator
ThreadDecorator getThreadDecorator()
Gets the ThreadDecorator associated with this manager.- Returns:
- the ThreadDecorator, or
null
if there is none.
-
setThreadDecorator
void setThreadDecorator(ThreadDecorator decorator)
Sets the ThreadDecorator associated this manager should use.- Parameters:
decorator
- the ThreadDecorator, ornull
.
-
-