@Override
    public void setRetention(Duration duration) {
        retention = validateDuration(duration);
        auditor.setMaxValues(maxTotalSize, maxFileSize, retention);
        JiveGlobals.setProperty("xmpp.audit.days", Long.toString(duration.toDays())); // TODO fix loss of precision while remaining compatible with existing properties.
    }
the time between successive executions of the task that will save
the queued audited packets to a permanent store.
xmppserver/src/main/java/org/jivesoftware/openfire/audit/spi/AuditManagerImpl.java