Skip to content
Anirudh Ramanan edited this page Dec 10, 2020 · 13 revisions

Welcome to the batchman wiki!

BatchManager : It is the entry point to the library, where in the client will use the instance of the batch manager to push in data to the library for batching.

Batching Strategy : It is an interface, wherein the BatchingStrategy must implement this interface and override all it's methods.

PersistenceStrategy : It is an interface, where all the persistence logic comes in. The library has 3 persistence strategies on its own, or the client can provide his/her own persistence layer to persist the events, just to make sure that there is no loss of events (in case of app crash)

OnBatchReadyListener : It is a interface, which gives a callback, whenever the batch is ready. The client can consume the batch, and can make a network call to the server. There are various types of OnBatchReadyListener which will be discussed later.

Data : It is an abstract class, wherein the client will need to extend this class for his events.

Clone this wiki locally