|
Holger's Java API |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Task | |
|---|---|
| com.antelmann.db | This package contains generally useful classes for generic database management. |
| com.antelmann.image | This package contains classes for more easily dealing with images. |
| com.antelmann.net | The classes in this package are designed to provide convenient access to Internet related functionality. |
| com.antelmann.net.mail | The classes in this package are designed to ease the handling of emails. |
| com.antelmann.util | This package contains generally useful classes that are used throughout the other packages in this framework. |
| com.antelmann.util.gui | This package contains utility classes for GUI related implementations. |
| Uses of Task in com.antelmann.db |
|---|
| Methods in com.antelmann.db that return Task | ||
|---|---|---|
static
|
DBUtils.wrapWithUser(Task<E> task,
DBTransaction t,
User user)
allows to wrap the given task so that it runs in the context of the given user as the current user for the database |
|
| Methods in com.antelmann.db with parameters of type Task | ||
|---|---|---|
static void |
DBUtils.commitTask(Task<?> task,
DBTransaction tx)
commits the given task synchronized to the transaction and aborts the transaction in case of an exception |
|
static void |
DBUtils.runInTransaction(Task<? extends Exception> task,
DBTransaction t,
boolean useCommitNotAbort)
the given task is guaranteed to run in an active transaction, where this method only begins a transaction, if the given transaction is not active, yet. |
|
void |
LockManager.setWriteLockTask(Task<Exception> task)
|
|
static
|
DBUtils.wrapWithUser(Task<E> task,
DBTransaction t,
User user)
allows to wrap the given task so that it runs in the context of the given user as the current user for the database |
|
| Uses of Task in com.antelmann.image |
|---|
| Methods in com.antelmann.image with parameters of type Task | |
|---|---|
boolean |
MJPEGHandler.addAlertTask(Task<?> alertTask)
note that the alert task is performed before this handler enters the alert status; so if this instance is in alert status when the task is performed; it was from the previous alert. |
boolean |
MJPEGHandler.removeAlertTask(Task<?> alertTask)
|
| Uses of Task in com.antelmann.net |
|---|
| Classes in com.antelmann.net that implement Task | |
|---|---|
static class |
Spider.SMonitor
Deprecated. |
| Uses of Task in com.antelmann.net.mail |
|---|
| Classes in com.antelmann.net.mail that implement Task | |
|---|---|
class |
AccountReader
a Runnable utility class that processes and optionally deletes all emails from a given account |
class |
IMAPBackup
allows to easily backup an IMAP account. |
| Uses of Task in com.antelmann.util |
|---|
| Classes in com.antelmann.util that implement Task | |
|---|---|
class |
Monitor
Monitor is a convenient class that is useful to communicate between threads by exchanging information through this Monitor. |
class |
MonitorDelegate
The relevant calls to the monitor are delegated to a ProgressMonitor or JProgressBar or Logger. |
| Methods in com.antelmann.util that return Task | |
|---|---|
static Task<RuntimeException> |
Misc.asTask(Runnable r)
|
Task<?> |
DelayedTask.unwrap()
|
| Methods in com.antelmann.util with parameters of type Task | |
|---|---|
static Runnable |
ThreadWorker.asRunnable(Task<?> task)
|
static Runnable |
Misc.asRunnable(Task<?> task)
|
static void |
Misc.run(Task<?> task,
boolean asynchronously)
runs the given task (either within this or a new thread) while converting Exceptions to RuntimeExceptions if they happen |
int |
ThreadWorker.runTask(Task<?> task)
|
| Constructors in com.antelmann.util with parameters of type Task | |
|---|---|
DelayedTask(Task<?> task,
long delay)
|
|
| Uses of Task in com.antelmann.util.gui |
|---|
| Methods in com.antelmann.util.gui with parameters of type Task | |
|---|---|
Thread |
MyAbstractAction.execute(Task<?> backgroundTask,
Task<?> finishingTaskInEventThread)
executes the first given task in the background and then the second later in the event thread again. |
Thread |
MyAbstractAction.execute(Task<?> backgroundTask,
Task<?> finishingTaskInEventThread)
executes the first given task in the background and then the second later in the event thread again. |
void |
FormHelper.installChangeListener(Component comp,
Task<? extends RuntimeException> task)
this method creates and installs listeners for the given component that run the given task upon changes to the component |
void |
FormHelper.installChangeListener(Component comp,
Task<? extends RuntimeException> task,
String changeProperty)
additionally supports the option to use a PropertyChangeListener with the given property
if everything else fails. |
Thread |
MyAbstractAction.runInBackground(Task<?> task)
returns the started thread |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||