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

webui views: sysconfig to configure how much time we keep the views before we expire them #1407

Merged
merged 4 commits into from
Apr 16, 2020

Conversation

TheBestPessimist
Copy link
Contributor

@metas-ts metas-ts merged commit 39f76f8 into master Apr 16, 2020
@metas-ts metas-ts deleted the gh6480-ViewExpiration branch April 16, 2020 09:18
private final Cache<ViewId, IView> views;

public DefaultViewsRepositoryStorage(final int viewExpirationTimeoutInHours)
public DefaultViewsRepositoryStorage(final long viewExpirationTimeoutInMinutes)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheBestPessimist @metas-ts we shall avoid using primitive (and meaningless) types.
In this case, Duration would be suitable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THere's no way in java 8 to transform a Duration -> Timeunit.
I wanted to use duration in the first place, but didn't see a good way. More details: https://stackoverflow.com/questions/26581708/converting-timeunit-to-chronounit

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

Successfully merging this pull request may close these issues.

None yet

3 participants