com.dooapp.gaedo.prevalence.space.basic.SpacePersister Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gaedo-prevalence Show documentation
Show all versions of gaedo-prevalence Show documentation
A gaedo-inspired prevalence layer and the associated service, for making the most gaedo-efficient use of that layer
package com.dooapp.gaedo.prevalence.space.basic;
import java.io.Serializable;
import java.util.concurrent.ScheduledExecutorService;
import com.dooapp.gaedo.prevalence.space.Command;
import com.dooapp.gaedo.prevalence.space.ExecutionSpace;
import com.dooapp.gaedo.prevalence.space.StorageSpace;
/**
* Space persister persists space (crazy, no ?)
* @author ndx
*
*/
public interface SpacePersister {
/**
* Log input command, whatever it means
* @param
* @param toLog
*/
public void logCommand(Command toLog);
/**
* Restore if possible, storage space and persister configuration from its storage location
*/
public StorageSpace restore(StorageSpace storageSpace);
/**
* Install recuring actions for this space persister on executor and using storage space
* @param executor executor service used to perform actions
* @param storageSpace storage space that will be used
*/
public void install(ScheduledExecutorService executor, StorageSpace storageSpace);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy