Package | Description |
---|---|
org.apache.river.thread |
These are utility classes and interfaces for helping with tasks done in multiple threads.
|
Modifier and Type | Method and Description |
---|---|
protected WakeupManager.Ticket |
WakeupManager.newTicket(long when,
Runnable task,
WakeupManager.ThreadDesc threadDesc)
Create a new ticket with the specified values for when the task
should be run, what task should be run, and what sort of
thread the task should be run in.
|
WakeupManager.Ticket |
WakeupManager.schedule(long when,
Runnable task)
Schedule the given task for the given time.
|
WakeupManager.Ticket |
WakeupManager.schedule(long when,
Runnable task,
WakeupManager.ThreadDesc threadDesc)
Schedule the given task for the given time, to be run in a thread.
|
Modifier and Type | Method and Description |
---|---|
void |
WakeupManager.cancel(WakeupManager.Ticket t)
Cancel the given ticket.
|
int |
WakeupManager.Ticket.compareTo(WakeupManager.Ticket o) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.