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

mil.nga.geopackage.io.GeoPackageProgress Maven / Gradle / Ivy

There is a newer version: 6.6.7
Show newest version
package mil.nga.geopackage.io;

/**
 * GeoPackage Progress interface for receiving progress information and handling
 * cancellations
 * 
 * @author osbornb
 */
public interface GeoPackageProgress {

	/**
	 * Set the max progress value
	 * 
	 * @param max
	 */
	public void setMax(int max);

	/**
	 * Add to the total progress
	 * 
	 * @param progress
	 */
	public void addProgress(int progress);

	/**
	 * Is the process still active
	 * 
	 * @return true if active, false if cancelled
	 */
	public boolean isActive();

	/**
	 * Should the progress so far be deleted when cancelled ({@link #isActive()}
	 * becomes false)
	 * 
	 * @return true to cleanup progress
	 */
	public boolean cleanupOnCancel();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy