|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KeenEventStore
Interface which provides an abstraction layer around how events are stored in between being queued and being uploaded by a batch post operation.
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.Object handle)
Gets the event corresponding to the given handle. |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getHandles(java.lang.String projectId)
Retrieves a map from collection names to lists of handles currently stored under each collection. |
void |
remove(java.lang.Object handle)
Removes the specified event from the store. |
java.lang.Object |
store(java.lang.String projectId,
java.lang.String eventCollection,
java.lang.String event)
Stores the given event. |
| Method Detail |
|---|
java.lang.Object store(java.lang.String projectId,
java.lang.String eventCollection,
java.lang.String event)
throws java.io.IOException
projectId - The ID of the project in which the event should be stored.eventCollection - The name of the collection in which the event should be stored.event - The serialized JSON for the event to store.
java.io.IOException - If there is an error storing the event.
java.lang.String get(java.lang.Object handle)
throws java.io.IOException
handle - A handle returned from a previous call to store(String, String,
String)
or getHandles(String).
java.io.IOException - If there is an error retrieving the event.
void remove(java.lang.Object handle)
throws java.io.IOException
handle - A handle returned from a previous call to store(String, String,
String)
or getHandles(String).
java.io.IOException - If there is an error removing the event.
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHandles(java.lang.String projectId)
throws java.io.IOException
KeenClient to retrieve the
events to send in a batch to the Keen server, as well as to remove all successfully posted
events after processing the response.
projectId - The ID of the project for which to retrieve event handles.
java.io.IOException - If there is an error retrieving the handles.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||