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

com.harrys.hyppo.source.api.task.ProcessedDataPersister Maven / Gradle / Ivy

There is a newer version: 0.6.4
Show newest version
package com.harrys.hyppo.source.api.task;

import com.harrys.hyppo.source.api.PersistingSemantics;
import org.apache.avro.specific.SpecificRecord;

/**
 * Created by jpetty on 7/17/15.
 */
public interface ProcessedDataPersister {
    void persistProcessedData(PersistProcessedData operation) throws Exception;

    /**
     * The persister may specify that it guarantees idempotence, which may allow for persitence tasks to be retried
     * after a failure or restart.
     * @return The {@link PersistingSemantics} enum value appropriate for this persister implementation.
     */
    default PersistingSemantics semantics(){
        return PersistingSemantics.Default;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy