Skip to content

Expose method to check the cache is still active.#332

Merged
ok2c merged 1 commit into
apache:masterfrom
arturobernalg:feature/active_cache
Dec 11, 2021
Merged

Expose method to check the cache is still active.#332
ok2c merged 1 commit into
apache:masterfrom
arturobernalg:feature/active_cache

Conversation

@arturobernalg

@arturobernalg arturobernalg commented Dec 10, 2021

Copy link
Copy Markdown
Member

And reuse code for this.active.compareAndSet(true, false); validations.

@apache apache deleted a comment from SmallerCoder Dec 11, 2021
* @return {@code true} if the cache is active, otherwise return {@code false}.
* @since 5.2
*/
default boolean isActive() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@arturobernalg Why adding this method to HttpCacheStorage when it clearly applies to ManagedHttpCacheStorage only and it makes no sense for all other implementations?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ManagedHttpCacheStorage

that make sense. Didn't see the other implementations. My bad.
Changed only for ManagedHttpCacheStorage

@arturobernalg arturobernalg requested a review from ok2c December 11, 2021 10:05
@ok2c ok2c merged commit c091c05 into apache:master Dec 11, 2021
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.

2 participants