Interface IPoolFactory<T>
-
- All Known Implementing Classes:
OldObjectFactory
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, Object o)
Creates a replacement object for a value in a poolContentType<T>
getContentType()
-
-
-
Method Detail
-
createObject
T createObject(long identifier, Object o)
Creates a replacement object for a value in a pool- Parameters:
identifier
- the identifier that is used to look up the object- Returns:
- the replacement object that will be used instead
-
getContentType
ContentType<T> getContentType()
-
-