The ThreadFactorBuilder embeds the objectName into the name format of the thread. If the objectName has an embedded % sign, a RuntimeException occurs trying to set the name of the thread upon creation. The objectName needs to have % encoded as %% when used in for the setNameFormat method
The
ThreadFactorBuilder
embeds theobjectNam
e into the name format of the thread. If theobjectName
has an embedded%
sign, a RuntimeException occurs trying to set the name of the thread upon creation. TheobjectName
needs to have%
encoded as%%
when used in for thesetNameFormat
method