|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.storeandforward.impl.forwardtransaction.HostStatusMonitor
This thread class monitors the connection to the host system. It is used with the store class to determine whether request in the store can be released to the host system. Every x seconds the thread will attempt to send a request to the host system. This will only happen if the store is non-empty.
Constructor Summary | |
HostStatusMonitor()
HostStatusMonitor constructor. |
|
HostStatusMonitor(int delay)
HostStatusMonitor constructor. |
Method Summary | |
void |
run()
This method will check if the store is empty every x seconds. |
void |
setDelay(int newDelay)
This method sets the time that the thread waits between checking this host status |
void |
start()
This method starts the monitor thread at the lowest priority |
void |
stop()
This method will shut down the thread |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HostStatusMonitor()
public HostStatusMonitor(int delay)
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void setDelay(int newDelay)
newDelay
- the new delay time in milliseconds ( must be > 1000)public void start()
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |