The Driver class has a number of methods which can be overridden in order to perform analysis or clean up. The most useful are:
- suspend() - Called by the framework when event processing is suspended.
- resume() - Called by the framework when event processing is resumed.
these methods are called immediately after event processing is complete (because the data source is exhausted, or the requested number of events have been analyzed) and immediately before event processing (re)starts.