Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance API to add indication that initialisation of Sirius has finished #17

Open
smuir opened this issue Feb 12, 2014 · 1 comment
Open

Comments

@smuir
Copy link
Contributor

smuir commented Feb 12, 2014

If the WAL is very large it can take a very long time for Sirius to read back the contents at initialisation. Thus it is often necessary for the application to have some means of knowing when that has completed before making its services available. In the reference app, and within the limitations of the current API, that requires polling the isOnline() method. Since this is likely to be a relatively common aspect of any Sirius app, it would be more convenient if there were simpler ways to do so, such as:

  • a blocking waitUntilOnline() method, potentially with a timeout value
  • other types of blocking objects that are compatible with general 'wait for event' APIs, such as Selector - that approach might be impractical and/or out of scope
  • a callback method registered with the Sirius implementation
@clinedome-work
Copy link
Collaborator

I like this. The isOnline() polling is awkward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants