Class OSThreadFactory
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.factories.OSThreadFactory
-
- All Implemented Interfaces:
IPoolFactory<IMCThread>
final class OSThreadFactory extends java.lang.Object implements IPoolFactory<IMCThread>
Factory that creates aJfrThread
for the OS thread pool.
-
-
Field Summary
Fields Modifier and Type Field Description private CanonicalConstantMap<JfrThread>
threadsMap
-
Constructor Summary
Constructors Constructor Description OSThreadFactory(CanonicalConstantMap<JfrThread> threadsMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMCThread
createObject(long identifier, java.lang.Object o)
Creates a replacement object for a value in a poolContentType<IMCThread>
getContentType()
-
-
-
Field Detail
-
threadsMap
private final CanonicalConstantMap<JfrThread> threadsMap
-
-
Constructor Detail
-
OSThreadFactory
OSThreadFactory(CanonicalConstantMap<JfrThread> threadsMap)
-
-
Method Detail
-
createObject
public IMCThread createObject(long identifier, java.lang.Object o)
Description copied from interface:IPoolFactory
Creates a replacement object for a value in a pool- Specified by:
createObject
in interfaceIPoolFactory<IMCThread>
- Parameters:
identifier
- the identifier that is used to look up the object- Returns:
- the replacement object that will be used instead
-
getContentType
public ContentType<IMCThread> getContentType()
- Specified by:
getContentType
in interfaceIPoolFactory<IMCThread>
-
-