Package | Description |
---|---|
jhelp.util |
Utilities for make more easy lot of common stuffs
|
jhelp.util.preference |
Preferences/configuration management
|
jhelp.util.stateMachine | |
jhelp.util.thread |
Thread management
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MemorySweeper.Sweeper
Do the cleaning in its own thread
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
PreferencesSerializer
Serialize preferences in XML
|
Modifier and Type | Class and Description |
---|---|
class |
StateMachine
For manage a state machine.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
PostProgress<PROGRESS>
Task that post a progress information
|
class |
ThreadedSimpleTask<PARAMETER>
Do a simple task.
|
class |
ThreadedVerySimpleTask
Threaded task very simple.
|
Modifier and Type | Field and Description |
---|---|
private ThreadedTask<PARAMETER,RESULT,PROGRESS> |
ThreadElement.threadedTask
Task to do
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,java.util.ArrayList<Pair<ThreadedTask,java.lang.Object>>> |
Conditions.conditions
Conditions list
|
private java.util.HashMap<java.lang.String,Queue<Pair<ThreadedTask<?,?,?>,?>>> |
WaitingManager.waiters
Threaded task that are waiting
|
Modifier and Type | Method and Description |
---|---|
<PARAMETER,RESULT,PROGRESS> |
ThreadManager.delayedThread(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter,
long delay)
Do a task in a delayed time.
|
<PARAMETER,RESULT,PROGRESS> |
ThreadManager.doThread(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter)
Do a task as soon as possible.
|
<PARAMETER,RESULT,PROGRESS> |
WaitingManager.register(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter,
java.lang.String waitingFor)
Register a task to be play on specific event
|
<PARAMETER,RESULT,PROGRESS> |
ThreadManager.repeatThread(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter,
long delay,
long repeat)
Repeat a task
|
<PARAMETER> |
Conditions.waitFor(java.lang.String condition,
ThreadedTask<PARAMETER,?,?> task,
PARAMETER parameter)
Register a thread to wait a condition to be valid before launch.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Void |
PostProgress.doThreadAction(Pair<ThreadedTask<?,?,PROGRESS>,PROGRESS> parameter)
Post the progression information
Parent documentation: Call when the turn of this thread comes. |
Constructor and Description |
---|
ThreadElement(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter,
long timeToAct)
Create a new instance of ThreadElement
|
ThreadElement(ThreadedTask<PARAMETER,RESULT,PROGRESS> threadedTask,
PARAMETER parameter,
long timeToAct,
long repeatTime)
Create a new instance of ThreadElement
|