Interface IPoolFactory<T>
-
- All Known Implementing Classes:
JavaThreadFactory
,MethodFactory
,OldObjectFactory
,OSThreadFactory
,StackTraceFactory
,ThreadGroupFactory
,TypeFactory
public interface IPoolFactory<T>
Interface for factories that can drop in a custom object instead of the value in a thread pool.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
createObject(long identifier, java.lang.Object o)
Creates a replacement object for a value in a poolContentType<T>
getContentType()
-
-
-
Method Detail
-
createObject
T createObject(long identifier, java.lang.Object o)
Creates a replacement object for a value in a pool- Parameters:
identifier
- the identifier that is used to look up the objectthe
- object that would normally be returned from the pool- Returns:
- the replacement object that will be used instead
-
getContentType
ContentType<T> getContentType()
-
-