io.keen.client.java
Interface KeenAttemptCountingEventStore

All Superinterfaces:
KeenEventStore
All Known Implementing Classes:
FileEventStore, RamEventStore

public interface KeenAttemptCountingEventStore
extends KeenEventStore

Interface which provides an abstraction layer around how attempt counts are stored.

Since:
2.0.2

Method Summary
 java.lang.String getAttempts(java.lang.String projectId, java.lang.String eventCollection)
          Gets the stored attempts String for a given project and collection.
 void setAttempts(java.lang.String projectId, java.lang.String eventCollection, java.lang.String attemptsString)
          Set and stores the attempts String for a given project and collection.
 
Methods inherited from interface io.keen.client.java.KeenEventStore
get, getHandles, remove, store
 

Method Detail

getAttempts

java.lang.String getAttempts(java.lang.String projectId,
                             java.lang.String eventCollection)
                             throws java.io.IOException
Gets the stored attempts String for a given project and collection.

Parameters:
projectId - the project id
eventCollection - the collection name
Returns:
a String that was previously stored for this project and collection or null
Throws:
java.io.IOException - exception

setAttempts

void setAttempts(java.lang.String projectId,
                 java.lang.String eventCollection,
                 java.lang.String attemptsString)
                 throws java.io.IOException
Set and stores the attempts String for a given project and collection.

Parameters:
projectId - the project id
eventCollection - the collection name
attemptsString - the String to stored for this project and collection
Throws:
java.io.IOException - exception