public abstract class OAChangeRefresher extends Object
to start the thread
,
to manually run process
,
to stop the thread.
Constructor and Description |
---|
OAChangeRefresher()
create a new change refresher.
|
OAChangeRefresher(boolean bInitialize)
ceate a new change refresher, with the option to have refress called once started.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(Hub hub,
String... propertyPaths) |
void |
addListener(Hub hub,
String propertyPath) |
protected void |
finalize() |
boolean |
hasChanged()
used to know if refresh has been called since processing.
|
boolean |
isChanged() |
protected abstract void |
process()
Called when it's time to process.
|
void |
refresh()
used to have the process rerun.
|
protected void |
runThread() |
void |
start() |
void |
stop() |
public OAChangeRefresher()
public OAChangeRefresher(boolean bInitialize)
bInitialize
- if true, then the refresh process is called when start() is called.protected abstract void process() throws Exception
Exception
to know if refresh has been called since process started.
public void refresh()
protected void finalize() throws Throwable
public boolean hasChanged()
public boolean isChanged()
public void start()
public void stop()
protected void runThread()
Copyright © 1999–2019 ViaOA. All rights reserved.