public class Purger extends java.lang.Object implements java.lang.Runnable, ConfChangeEventListenerI
This class implements the purging functionality, typically used for GDPR compliance.
It executes the GDPRRetentionPurgeService to identify and remove business objects that have
exceeded their retention period.
It implements Runnable and uses a ScheduledExecutorService to schedule its execution
at fixed intervals. The initial delay and the delay between subsequent runs are configurable via mytism.ini
in section INI_SECTION_NAME via the variables INI_VARIABLE_NAME_ACTIVATE for enabling or
disabling the task, and INI_VARIABLE_NAME_INITIAL_DELAY_DAYS and INI_VARIABLE_NAME_DELAY_DAYS
for configuring the delays before and inbetween the task runs.
| Constructor and Description |
|---|
Purger(DBManLocalI _dbm)
Constructs a new Purger instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processConfChangeEvent(ConfChangeEvent e)
Processes a configuration change event.
|
void |
run()
Executes the purging process.
|
boolean |
shutdown()
Attempts to shut down the purger.
|
public Purger(DBManLocalI _dbm)
_dbm - The DBManLocalI instance to use for database access.public void processConfChangeEvent(ConfChangeEvent e)
ConfChangeEventListenerIprocessConfChangeEvent in interface ConfChangeEventListenerIe - The ConfChangeEvent object containing details of the configuration change.public void run()
This method runs the GDPRRetentionPurgeService to purge outdated data. It logs informational messages before and after the service run and handles any exceptions that might occur during the process.
run in interface java.lang.RunnableGDPRRetentionPurgeServicepublic boolean shutdown()
true if the purger was successfully shut down, false otherwise.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.