Package com.io7m.cardant.server.service.maintenance

# Class CAMaintenanceService

java.lang.Object
com.io7m.cardant.server.service.maintenance.CAMaintenanceService

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

public final class CAMaintenanceService 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 CAMaintenanceService`
  `create(CAServerClock clock, CAServerTelemetryServiceType telemetry, CAConfigurationServiceType configuration, CATLSContextServiceType tlsContexts, CADatabaseType database)`
  A service that performs nightly maintenance.
  `String`
  `description()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

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

- ## Method Details

  - ### create

    public static CAMaintenanceService create(CAServerClock clock, CAServerTelemetryServiceType telemetry, CAConfigurationServiceType configuration, CATLSContextServiceType tlsContexts, CADatabaseType 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`