Created
September 5, 2012 07:36
-
-
Save nekman/3632689 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package se.labs.cache; | |
| /** | |
| * | |
| * @author ne | |
| * | |
| * @param <T> The item to cache | |
| */ | |
| public interface ItemCache<T> { | |
| /** | |
| * | |
| * @return The cached item | |
| */ | |
| T getItem(); | |
| /** | |
| * | |
| * @return {@code true} if reload is needed | |
| */ | |
| boolean isReloadNeeded(); | |
| /** | |
| * Forces the cache to reload next time it is called | |
| */ | |
| void invalidate(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment