Package com.io7m.idstore.server.internal

# Class IdServerMaintenanceService

java.lang.Object
com.io7m.idstore.server.internal.IdServerMaintenanceService

All Implemented Interfaces:
  `IdServiceType`, `AutoCloseable`

public final class IdServerMaintenanceService extends Object implements IdServiceType, AutoCloseable
A service that performs nightly database maintenance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static IdServerMaintenanceService`
  `create(IdServerClock clock, IdServerTelemetryService telemetry, IdDatabaseType database)`
  A service that performs nightly database 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 IdServerMaintenanceService create(IdServerClock clock, IdServerTelemetryService telemetry, IdDatabaseType database)
    A service that performs nightly database maintenance.
    Parameters:
      `clock` - The clock
      `telemetry` - The telemetry service
      `database` - The database
    Returns:
      The service

  - ### description

    public String description()
    Specified by:
      `description` in interface `IdServiceType`
    Returns:
      The service description

  - ### close

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

  - ### toString

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