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 TypeMethodDescriptionvoidCancels all scheduled auto-save tasks.@NotNull ModulePersistenceConfiggetModuleConfig(@NotNull String moduleName) Returns the persistence configuration of a specific module.voidloadAll()Loads all saved voice modules from disk.voidLoads all active voice projections from disk.voidLoads all active radio channels from disk.voidLoads all acoustic rooms from disk.voidLoads all 3D locational speakers from disk.voidLoads all active point-to-point transmitters from disk.voidLoads all active wiretaps from disk.voidReloads all module persistence configurations from disk.voidsaveAll()Saves all active voice modules to their respective JSON files on disk.voidSaves all active voice projections to disk.voidSaves all active radio channels to disk.voidSaves all acoustic rooms to disk.voidsaveSpeaker(@NotNull UUID uuid) Saves a single speaker to disk by its UUID.voidSaves all 3D locational speakers to disk.voidSaves all active point-to-point transmitters to disk.voidSaves all active wiretaps to disk.voidStarts 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
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
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.
-