com.ibm.etill.kitcashcassette
Class KitCashCleanUp
java.lang.Object
|
+--com.ibm.etill.kitcashcassette.KitCashCleanUp
- All Implemented Interfaces:
- com.ibm.etill.framework.supervisor.WorkItem
- public class KitCashCleanUp
- extends java.lang.Object
- implements com.ibm.etill.framework.supervisor.WorkItem
A KitCashCleanUp
object is created by the KitCash cassette to clean up
the KitCash database tables at regular intervals.
To get the Payment Manager timer thread to schedule hourly clean-up operations, the KitCash
cassette uses the following code:
WorkItem item = new KitCashCleanUp(60);
item.doYourWork();
Constructor Summary |
KitCashCleanUp(int interval)
Constructs a new KitCashCleanUp object to clean the KitCash database tables at regular intervals. |
Method Summary |
void |
doYourWork()
Clears old data from the KitCash database tables and schedules another
cleaning operation after the pre-determined interval. |
com.ibm.etill.framework.cassette.Cassette |
getCassette()
Returns the Cassette object associated with this WorkItem (the KitCashCassette). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KitCashCleanUp
public KitCashCleanUp(int interval)
- Constructs a new KitCashCleanUp object to clean the KitCash database tables at regular intervals.
- Parameters:
interval
- the number of minutes between clean-up operations
doYourWork
public void doYourWork()
- Clears old data from the KitCash database tables and schedules another
cleaning operation after the pre-determined interval.
This method is called by the Payment Manager timer thread when it is time for the clean-up
operation to begin.
- Specified by:
doYourWork
in interface com.ibm.etill.framework.supervisor.WorkItem
getCassette
public com.ibm.etill.framework.cassette.Cassette getCassette()
- Returns the Cassette object associated with this WorkItem (the KitCashCassette).
- Specified by:
getCassette
in interface com.ibm.etill.framework.supervisor.WorkItem
- Returns:
- Cassette The KitCashCassette.