public class TimerFactory extends Object
Constructor and Description |
---|
TimerFactory() |
Modifier and Type | Method and Description |
---|---|
static Timer |
create(String threadName,
ThreadPriority priority)
Create and return a Timer.
|
static Timer.TimerNode |
createNode(Timer.TimerCallback timerCallback)
Create a node that can be passed to the schedule methods..
|
public static Timer create(String threadName, ThreadPriority priority)
threadName
- The thread name for the timer thread.priority
- The priority for the timer thread.public static Timer.TimerNode createNode(Timer.TimerCallback timerCallback)
timerCallback
- The interface implemented by the user.Copyright © 2014. All Rights Reserved.