All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dooapp.gaedo.prevalence.space.basic.SpacePersister Maven / Gradle / Ivy

Go to download

A gaedo-inspired prevalence layer and the associated service, for making the most gaedo-efficient use of that layer

There is a newer version: 1.0.16
Show newest version
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