I have copied all the necessary classes which is needed for the undersatanding purpose on the pastebin
This is my factory class -
pastebin.com/w3LX9NKQ
This is my client class -
pastebin.com/WWxGKbtt
This is my task class -
pastebin.com/sj9fYUwB
This is my mappings class -
pastebin.com/7RQm6bcA
And this is my scheduler -
pastebin.com/8LJ8JPEb
so the actual flow is, people will get the instance of DataClient from the factory and call getUserDataSync method by passing DataKey.
While getting the instance of DataClient from the factory, it will start the background thread which is in Data…