# Class IdMaintenanceService

java.lang.Object
com.io7m.idstore.server.service.maintenance.IdMaintenanceService

All Implemented Interfaces:
  `com.io7m.repetoir.core.RPServiceType, AutoCloseable`

public final class IdMaintenanceService extends Object implements com.io7m.repetoir.core.RPServiceType, AutoCloseable
A service that performs nightly database maintenance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static IdMaintenanceService`
  `create(IdServerClock clock, IdServerTelemetryServiceType telemetry, IdServerConfigurationService configuration, IdTLSContextServiceType tlsContexts, IdDatabaseType database)`
  A service that performs nightly maintenance.
  `String`
  `description()`
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### create

    public static IdMaintenanceService create(IdServerClock clock, IdServerTelemetryServiceType telemetry, IdServerConfigurationService configuration, IdTLSContextServiceType tlsContexts, IdDatabaseType database)
    A service that performs nightly maintenance.
    Parameters:
      `clock` - The clock
      `telemetry` - The telemetry service
      `configuration` - The configuration service
      `tlsContexts` - The TLS contexts
      `database` - The database
    Returns:
      The service

  - ### description

    public String description()
    Specified by:
      `description` in interface `com.io7m.repetoir.core.RPServiceType`

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`