Package | Description |
---|---|
org.apache.river.thread |
These are utility classes and interfaces for helping with tasks done in multiple threads.
|
Modifier and Type | Field and Description |
---|---|
WakeupManager.ThreadDesc |
WakeupManager.Ticket.desc
The
ThreadDesc , or null if none. |
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,
WakeupManager.ThreadDesc threadDesc)
Schedule the given task for the given time, to be run in a thread.
|
Constructor and Description |
---|
WakeupManager(WakeupManager.ThreadDesc desc)
Create a new
WakeupManager . |
WakeupManager(WakeupManager.ThreadDesc desc,
Configuration config)
Create a new
WakeupManager . |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.