public void cleanupResources();
None.
None.
None.
The cleanupResources() method is useful as one of the last steps in the pollForEvents() method. In it, you can include code that releases resources that the pollForEvents() method has allocated to access the event store. For example, if the event store is implemented as an event table, the pollForEvents() method might have allocated SQL cursors to access the event tables. In this case, you can include statements in cleanupResources() that close these cursors, thereby freeing memory usage and releasing unneeded cursors.