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 com.webobjects.eocontrol.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 com.webobjects.eocontrol.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(com.webobjects.eocontrol.EOObjectStore parentObjectStore) |
cancel, scheduledExecutionTime
public final void run()
public abstract void _run()
protected final com.webobjects.eocontrol.EOObjectStore parentObjectStore()
EOObjectStoreCoordinator
to
partition the task's EOF intensive work form the rest of the app.public final void setParentObjectStore(com.webobjects.eocontrol.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 com.webobjects.eocontrol.EOEditingContext newEditingContext()
Copyright © 2002 – 2020 Project Wonder.