Class RandomSeeder.DefaultThreadFactory
- java.lang.Object
-
- io.github.pr0methean.betterrandom.seed.RandomSeeder.DefaultThreadFactory
-
- All Implemented Interfaces:
Serializable
,ThreadFactory
- Enclosing class:
- RandomSeeder
public static class RandomSeeder.DefaultThreadFactory extends Object implements ThreadFactory, Serializable
AThreadFactory
that sets the name and priority of the threads it creates.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultThreadFactory(String name)
Creates an instance with a reasonable default priority for most applications.DefaultThreadFactory(String name, int priority)
Creates an instance.
-
-
-
Constructor Detail
-
DefaultThreadFactory
public DefaultThreadFactory(String name)
Creates an instance with a reasonable default priority for most applications.- Parameters:
name
- the name of the created thread; seeThread.setName(String)
-
DefaultThreadFactory
public DefaultThreadFactory(String name, int priority)
Creates an instance.- Parameters:
name
- the name of the created thread; seeThread.setName(String)
priority
- the priority of the created thread; seeThread.setPriority(int)
-
-