public class EnhancedTimer extends Object
Modifier and Type | Class and Description |
---|---|
class |
EnhancedTimer.Task |
Constructor and Description |
---|
EnhancedTimer(Executor bossExecutor,
Executor taskExecutor) |
EnhancedTimer(String name)
Constructs a new Timer that directly executes tasks off of a single-thread thread pool.
|
Modifier and Type | Method and Description |
---|---|
EnhancedTimer.Task |
add(Runnable task,
long delay)
Add a delayed task
|
int |
getQueueSize() |
public EnhancedTimer(String name)
name
- public EnhancedTimer.Task add(Runnable task, long delay)
task
- delay
- in mspublic int getQueueSize()
Copyright © 2018 JBoss by Red Hat. All rights reserved.