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

Allow configuration of reload frequency for FileBasedStateRepository #64

Closed
ptaylor opened this issue Nov 28, 2013 · 3 comments
Closed

Allow configuration of reload frequency for FileBasedStateRepository #64

ptaylor opened this issue Nov 28, 2013 · 3 comments

Comments

@ptaylor
Copy link

@ptaylor ptaylor commented Nov 28, 2013

The FileBasedStateRepoistory defaults to 1000ms between reloads of the config file. I would like to be able to set this to a different value when creating an instance.

@ghost
Copy link

@ghost ghost commented Nov 28, 2013

If u want it to be less frequent u can wrap it with cache state repository


From: ptaylor
Sent: Thu, Nov 28, 2013 2:17 PM
To: togglz/togglz togglz@noreply.github.com
CC:
Subject: [togglz] Allow configuration of reload frequency for FileBasedStateRepository (#64)

The FileBasedStateRepoistory defaults to 1000ms between reloads of the config file. I would like to be able to set this to a different value when creating an instance.


Reply to this email directly or view it on GitHubhttps://github.com//issues/64.

@chkal
Copy link
Member

@chkal chkal commented Nov 28, 2013

Just committed a fix for this issue. You can now specify the interval using a constructor argument. The latest version of 2.1.0-SNAPSHOT should be available in a few minutes.

@chkal chkal closed this Nov 28, 2013
@ptaylor
Copy link
Author

@ptaylor ptaylor commented Nov 28, 2013

Thanks for the quick fix. I had looked at the CachingStateRepository but only got as far as the first constructor and didn't see the ttl parameter. That should work until I upgrade to the next release.

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

Successfully merging a pull request may close this issue.

None yet
2 participants