Interface InternalAuditService

All Superinterfaces:
AuditService

@Internal public interface InternalAuditService extends AuditService
Extends AuditService for operations like removing stale entries, etc
  • Method Details

    • removeStaleEntries

      int removeStaleEntries()
      Removes stale entries basing on current configuration
      Returns:
      number of removed entries
    • removeEntriesOlderThan

      int removeEntriesOlderThan(Instant cutoff)
      Removes entries created before the given instant
      Returns:
      number of removed entries
      Since:
      v3.2
    • saveAudits

      void saveAudits(Collection<AuditLogChangeset> changesets)
      Persists the given audit log changesets. Their timestamps will be set to the current time. Will not do anything when audit log is disabled.
      Parameters:
      changesets - the changesets that will be persisted
      Since:
      v3.2
    • getAuditLogSize

      long getAuditLogSize()
      Returns:
      the amount of changesets in the audit log