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

io.keen.client.java.KeenAttemptCountingEventStore Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.keen.client.java;

import java.io.IOException;

/**
 * Interface which provides an abstraction layer around how attempt counts are stored.
 *
 * @author Simon Murtha Smith
 * @since 2.0.2
 */
public interface KeenAttemptCountingEventStore extends KeenEventStore {

    /**
     * Gets the stored attempts String for a given project and collection.
     *
     * @param projectId the project id
     * @param eventCollection the collection name
     * @return a String that was previously stored for this project and collection or null
     * @throws java.io.IOException exception
     */
    public String getAttempts(String projectId, String eventCollection) throws IOException;

    /**
     * Set and stores the attempts String for a given project and collection.
     * @param projectId the project id
     * @param eventCollection the collection name
     * @param attemptsString the String to stored for this project and collection
     * @throws java.io.IOException exception
     * */
    public void setAttempts(String projectId, String eventCollection, String attemptsString) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy