public abstract class Updater
extends java.lang.Object
implements java.util.Observer
Modifier and Type | Class and Description |
---|---|
static class |
Updater.ObservableInfo |
static class |
Updater.ObservableInfoContainer |
Constructor and Description |
---|
Updater(anon.util.Updater.IUpdateInterval a_updateInterval,
Updater.ObservableInfo a_observable)
Initialises and starts the database update thread.
|
Modifier and Type | Method and Description |
---|---|
abstract long |
getLastUpdate()
Should return Long.MAX_VALUE if no update was done since program start.
|
abstract java.lang.Class |
getUpdatedClass() |
anon.util.Updater.IUpdateInterval |
getUpdateInterval() |
boolean |
isFirstUpdateDone() |
boolean |
needsUpdate() |
void |
start(boolean a_bSynchronized)
Starts the thread if it has not already started or has been stopped before.
|
void |
stop()
Stops the update thread.
|
boolean |
update()
Force a synchronized update of the known database entries.
|
void |
update(java.util.Observable a_observable,
java.lang.Object a_argument) |
boolean |
update(java.util.Vector a_queueUpdatersToUpdate) |
void |
updateAsync(java.util.Vector a_queueUpdatersToUpdate)
Force an update of the known database entries.
|
public Updater(anon.util.Updater.IUpdateInterval a_updateInterval, Updater.ObservableInfo a_observable)
public void update(java.util.Observable a_observable, java.lang.Object a_argument)
update
in interface java.util.Observer
public final void start(boolean a_bSynchronized)
public final boolean update()
public final boolean update(java.util.Vector a_queueUpdatersToUpdate)
public final void updateAsync(java.util.Vector a_queueUpdatersToUpdate)
a_queueUpdatersToUpdate
- enabled a defined order of several updaters; just put one or more updates in a queue
exactly in the order as they should be calledpublic final void stop()
public final anon.util.Updater.IUpdateInterval getUpdateInterval()
public abstract java.lang.Class getUpdatedClass()
public abstract long getLastUpdate()
public boolean needsUpdate()
public final boolean isFirstUpdateDone()
Copyright © 2023. All rights reserved.