public abstract class ERXTimerTask extends TimerTask
TimerTask
tasks. It provides support for cleaning up editing
context locks at the end of your task's run() method just like the
behavior at the end of a normal R-R loop.Constructor and Description |
---|
ERXTimerTask() |
Modifier and Type | Method and Description |
---|---|
abstract void |
_run()
Override _run to provide your task's implementation.
|
protected EOEditingContext |
newEditingContext()
You must manually lock and unlock the editing context returned by
this method. It is not recommended that you depend on auto
locking in background threads.
|
protected EOObjectStore |
parentObjectStore()
See Effective Java item #71 for explanation of this threadsafe lazy
initialization technique
|
void |
run()
Do not override run like implementing TimeTask
directly.
|
void |
setParentObjectStore(EOObjectStore parentObjectStore) |
cancel, scheduledExecutionTime
public final void run()
public abstract void _run()
protected final EOObjectStore parentObjectStore()
EOObjectStoreCoordinator
to
partition the task's EOF intensive work form the rest of the app.public final void setParentObjectStore(EOObjectStore parentObjectStore)
parentObjectStore
- the parent, usually an EOObjectStoreCoordinator
to
partition the task's EOF intensive work from the rest of the
app. If you are going to manually set this, you should do it
before starting the task.protected EOEditingContext newEditingContext()
Copyright © 2002 – 2024 Project Wonder.