Interface VoicePersistenceService


public interface VoicePersistenceService
Service managing independent modular JSON persistence for speakers, wiretaps, projections, radio frequencies, and transmitters across server restarts.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels all scheduled auto-save tasks.
    getModuleConfig(@NotNull String moduleName)
    Returns the persistence configuration of a specific module.
    void
    Loads all saved voice modules from disk.
    void
    Loads all active voice projections from disk.
    void
    Loads all active radio channels from disk.
    void
    Loads all acoustic rooms from disk.
    void
    Loads all 3D locational speakers from disk.
    void
    Loads all active point-to-point transmitters from disk.
    void
    Loads all active wiretaps from disk.
    void
    Reloads all module persistence configurations from disk.
    void
    Saves all active voice modules to their respective JSON files on disk.
    void
    Saves all active voice projections to disk.
    void
    Saves all active radio channels to disk.
    void
    Saves all acoustic rooms to disk.
    void
    saveSpeaker(@NotNull UUID uuid)
    Saves a single speaker to disk by its UUID.
    void
    Saves all 3D locational speakers to disk.
    void
    Saves all active point-to-point transmitters to disk.
    void
    Saves all active wiretaps to disk.
    void
    Starts or restarts all scheduled auto-save tasks.
  • Method Details

    • saveAll

      void saveAll()
      Saves all active voice modules to their respective JSON files on disk.
    • loadAll

      void loadAll()
      Loads all saved voice modules from disk.
    • getModuleConfig

      @NotNull @NotNull ModulePersistenceConfig getModuleConfig(@NotNull @NotNull String moduleName)
      Returns the persistence configuration of a specific module.
      Parameters:
      moduleName - name of the module (e.g. speaker, radio)
      Returns:
      persistence config of the module
    • reloadModuleConfigs

      void reloadModuleConfigs()
      Reloads all module persistence configurations from disk.
    • startAutoSaveTasks

      void startAutoSaveTasks()
      Starts or restarts all scheduled auto-save tasks.
    • cancelAutoSaveTasks

      void cancelAutoSaveTasks()
      Cancels all scheduled auto-save tasks.
    • saveSpeakers

      void saveSpeakers()
      Saves all 3D locational speakers to disk.
    • loadSpeakers

      void loadSpeakers()
      Loads all 3D locational speakers from disk.
    • saveSpeaker

      void saveSpeaker(@NotNull @NotNull UUID uuid)
      Saves a single speaker to disk by its UUID.
      Parameters:
      uuid - the unique ID of the speaker
    • saveWiretaps

      void saveWiretaps()
      Saves all active wiretaps to disk.
    • loadWiretaps

      void loadWiretaps()
      Loads all active wiretaps from disk.
    • saveProjections

      void saveProjections()
      Saves all active voice projections to disk.
    • loadProjections

      void loadProjections()
      Loads all active voice projections from disk.
    • saveRadios

      void saveRadios()
      Saves all active radio channels to disk.
    • loadRadios

      void loadRadios()
      Loads all active radio channels from disk.
    • saveTransmitters

      void saveTransmitters()
      Saves all active point-to-point transmitters to disk.
    • loadTransmitters

      void loadTransmitters()
      Loads all active point-to-point transmitters from disk.
    • saveRooms

      void saveRooms()
      Saves all acoustic rooms to disk.
    • loadRooms

      void loadRooms()
      Loads all acoustic rooms from disk.