- CachedGroupJPAEntity<K extends Serializable,V extends Serializable> - Interface in dk.heick.caching.persistences.jpa.grouped
-
The interface your Entity class has to implement to have grouped JPA cache table definition.
- CachedGroupJPAEntityRepository<K extends Serializable,V extends Serializable> - Interface in dk.heick.caching.persistences.jpa.grouped
-
The repository instance used by DefaultGroupJPAEntityValueManager
.
- CachedGroupJPAID<K extends Serializable> - Interface in dk.heick.caching.persistences.jpa.grouped
-
The "Embeddable" cached group id for CachedGroupJPAEntity<K,V>
.
- CachedJPAEntity<K extends Serializable,V extends Serializable> - Interface in dk.heick.caching.persistences.jpa.single
-
The interface your Entity class has to implement to have JPA cache table definition.
Must have a no args constructor.
- CachedJPAEntityRepository<K extends Serializable,V extends Serializable> - Interface in dk.heick.caching.persistences.jpa.single
-
The repository instance used by DefaultJPAEntityValueManager
.
- CachingDirectory - Class in dk.heick.caching.persistences.file
-
Defines the directory where cached values is stored in files.
- CachingDirectory(File) - Constructor for class dk.heick.caching.persistences.file.CachingDirectory
-
Constructor, where recursive is false.
- CachingDirectory(File, boolean) - Constructor for class dk.heick.caching.persistences.file.CachingDirectory
-
Constructor.
- CachingDirectory(File, SubDirectoryCreator) - Constructor for class dk.heick.caching.persistences.file.CachingDirectory
-
Constructor with recursive set to true
.
- cast(AbstractValueWrapper<K, V>) - Method in class dk.heick.caching.persistences.file.AbstractFileValueManager
-
A convience method that cast the "AbstractValueWrapper" to a "DefaultFileValueWrapper"
- cast(AbstractValueWrapper<K, V>) - Method in class dk.heick.caching.persistences.file.DefaultFileLRUCachingMap
-
A convience method that cast the "AbstractValueWrapper" to a "DefaultFileValueWrapper"
- CharactersSubDirectoryCreator - Class in dk.heick.caching.persistences.file.subdirectory
-
Creates subdirectories on the basis of the Key as a String.
- CharactersSubDirectoryCreator(int) - Constructor for class dk.heick.caching.persistences.file.subdirectory.CharactersSubDirectoryCreator
-
Constructor.
- cleanup() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- cleanup() - Method in interface dk.heick.caching.LRUCachingMap
-
Cleanup the cache to uphold expire time and maxSize.
If maxSize is exceeded than the oldest must be remove until maxSize threshold is below limit.
This method must call the value manager flush method when is done.
- CleanupTimerRunnable - Class in dk.heick.caching.utils
-
An CleanupTimer that calls "LRUCachingMap.cleanup" periodically.
- CleanupTimerRunnable(LRUCachingMap<?, ?>) - Constructor for class dk.heick.caching.utils.CleanupTimerRunnable
-
Constructor
- CommonCachedJPAEntity<K extends Serializable,V extends Serializable> - Interface in dk.heick.caching.persistences.jpa
-
- compareTo(TimeSpan) - Method in class dk.heick.caching.utils.TimeSpan
-
Compares this TimeSpan with another on the "getSpan()"
- constructEntity(K, V, Date) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
Constructs an instance of "CachedGroupJPAEntity" clazz.
- constructEntity(K, V, Date) - Method in class dk.heick.caching.persistences.jpa.single.DefaultJPAEntityValueManager
-
Constructs an instance of "CachedGroupJPAEntity" clazz.
- constructFile(String, V) - Method in class dk.heick.caching.persistences.file.AbstractFilenameFileValueManager
-
- constructFile(K, V) - Method in class dk.heick.caching.persistences.file.AbstractFileValueManager
-
Constructs a file using the Key and Value.
- constructFile(K, V) - Method in class dk.heick.caching.persistences.file.AbstractIndexedFileValueManager
-
- constructFile(K, V) - Method in class dk.heick.caching.persistences.file.AbstractKeyedFileValueManager
-
- constructFile(String, File) - Method in class dk.heick.caching.persistences.file.reference.DefaultFilenameFileReferenceValueManager
-
- constructWrapper(K, V) - Method in class dk.heick.caching.memory.DefaultMemoryValueManager
-
- constructWrapper(K, V) - Method in class dk.heick.caching.persistences.file.AbstractFileValueManager
-
- constructWrapper(K, V) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
- constructWrapper(K, V) - Method in class dk.heick.caching.persistences.jpa.single.DefaultJPAEntityValueManager
-
- constructWrapper(K, V) - Method in interface dk.heick.caching.ValueManager
-
Construct a ValueWrapper for the value, but do not sets the value, this is done either in "restore" or "storeValue"
- createFilenameSerializedCache(LRUCachingMapConfiguration, CachingDirectory, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a file serialization cache, where the values is serialized to files.
- createFilenameXmlCache(LRUCachingMapConfiguration, CachingDirectory, Class<V>, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a xml file marshall/unmarshall cache.
- createFileReferenceCache(LRUCachingMapConfiguration, CachingDirectory, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a file reference cache.
- createIndexedSerializedCache(LRUCachingMapConfiguration, CachingDirectory, PersistencesRestoreMethod, int) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a indexed serializable file cache.
- createIndexedXmlCache(LRUCachingMapConfiguration, CachingDirectory, Class<V>, PersistencesRestoreMethod, int) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a indexed XML file cache.
- createJPACache(LRUCachingMapConfiguration, Class<? extends CachedJPAEntity<K, V>>, EntityManagerFactory, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a JPA cache for an entity.
- createJPAGroupedCache(LRUCachingMapConfiguration, String, Class<? extends CachedGroupJPAEntity<K, V>>, EntityManagerFactory, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a group JPA cache for an entity, where multiple cache instances can share the same table.
- createKeyedSerializedCache(LRUCachingMapConfiguration, CachingDirectory, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a keyed serializable file cache.
- createKeyedXmlCache(LRUCachingMapConfiguration, CachingDirectory, Class<V>, PersistencesRestoreMethod) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a keyed XML file cache.
- createMemoryCache(LRUCachingMapConfiguration) - Static method in class dk.heick.caching.LRUCachingMapFactory
-
Constructs a memory cache.
- DAYS_01 - Static variable in class dk.heick.caching.utils.TimeSpan
-
1 day
- DAYS_02 - Static variable in class dk.heick.caching.utils.TimeSpan
-
2 days
- DAYS_03 - Static variable in class dk.heick.caching.utils.TimeSpan
-
3 days
- DAYS_04 - Static variable in class dk.heick.caching.utils.TimeSpan
-
4 days
- DAYS_05 - Static variable in class dk.heick.caching.utils.TimeSpan
-
5 days
- DAYS_06 - Static variable in class dk.heick.caching.utils.TimeSpan
-
6 days
- DAYS_07 - Static variable in class dk.heick.caching.utils.TimeSpan
-
7 days
- DAYS_08 - Static variable in class dk.heick.caching.utils.TimeSpan
-
8 days
- DAYS_09 - Static variable in class dk.heick.caching.utils.TimeSpan
-
9 days
- DAYS_10 - Static variable in class dk.heick.caching.utils.TimeSpan
-
10 days
- DAYS_11 - Static variable in class dk.heick.caching.utils.TimeSpan
-
11 days
- DAYS_12 - Static variable in class dk.heick.caching.utils.TimeSpan
-
12 days
- DAYS_13 - Static variable in class dk.heick.caching.utils.TimeSpan
-
13 days
- DAYS_14 - Static variable in class dk.heick.caching.utils.TimeSpan
-
14 days
- DAYS_15 - Static variable in class dk.heick.caching.utils.TimeSpan
-
15 days
- DAYS_16 - Static variable in class dk.heick.caching.utils.TimeSpan
-
16 days
- DAYS_17 - Static variable in class dk.heick.caching.utils.TimeSpan
-
17 days
- DAYS_18 - Static variable in class dk.heick.caching.utils.TimeSpan
-
18 days
- DAYS_19 - Static variable in class dk.heick.caching.utils.TimeSpan
-
19 days
- DAYS_20 - Static variable in class dk.heick.caching.utils.TimeSpan
-
20 days
- DAYS_21 - Static variable in class dk.heick.caching.utils.TimeSpan
-
21 days
- DAYS_22 - Static variable in class dk.heick.caching.utils.TimeSpan
-
22 days
- DAYS_23 - Static variable in class dk.heick.caching.utils.TimeSpan
-
23 days
- DAYS_24 - Static variable in class dk.heick.caching.utils.TimeSpan
-
24 days
- DAYS_25 - Static variable in class dk.heick.caching.utils.TimeSpan
-
25 days
- DAYS_26 - Static variable in class dk.heick.caching.utils.TimeSpan
-
26 days
- DAYS_27 - Static variable in class dk.heick.caching.utils.TimeSpan
-
27 days
- DAYS_28 - Static variable in class dk.heick.caching.utils.TimeSpan
-
28 days
- DAYS_29 - Static variable in class dk.heick.caching.utils.TimeSpan
-
29 days
- DAYS_30 - Static variable in class dk.heick.caching.utils.TimeSpan
-
30 days
- DAYS_31 - Static variable in class dk.heick.caching.utils.TimeSpan
-
31 days
- DEFAULT_CLEANUP_INTERVAL - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default cleanup interval is 15 minuttes.
- DEFAULT_DIRECTORY_NAME_CHAR - Static variable in class dk.heick.caching.persistences.file.subdirectory.CharactersSubDirectoryCreator
-
The default character used.
- DEFAULT_EXPIRE_TIME - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default expiretime is 10 hours.
- DEFAULT_EXTEND_TIME - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default extend time is 1 hour.
- DEFAULT_MAX_EXTEND_COUNT - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default max extend count is 5
- DEFAULT_MAX_SIZE - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default max size is 10000.
- DEFAULT_PERSISTED_VALUES_IN_MEMORY - Static variable in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default value if persisted values should be stored in memory as well - true
.
- DefaultCachedGroupJPAEntityRepository<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.jpa.grouped
-
The repository instance of CachedGroupJPAEntityRepository
.
- DefaultCachedGroupJPAEntityRepository(String, Class<? extends CachedGroupJPAEntity<K, V>>, EntityManagerFactory) - Constructor for class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
Constructor
- DefaultCachedJPAEntityRepository<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.jpa.single
-
The repository instance of CachedJPAEntityRepository
.
- DefaultCachedJPAEntityRepository(Class<? extends CachedJPAEntity<K, V>>, EntityManagerFactory) - Constructor for class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
Constructor.
- DefaultCachedJPAValueWrapper<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.jpa.single
-
A value wrapper class for DefaultCachedJPAValueWrapper, this is both for CachedJPAEntity and CachedGroupJPAEntity.
- DefaultCachedJPAValueWrapper(K, V) - Constructor for class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAValueWrapper
-
Constructor.
- DefaultFileLRUCachingMap<K,V> - Class in dk.heick.caching.persistences.file
-
The default LRUCachingMap for file handling.
The "AbstractValueWrapper" is always cast to a "DefaultFileValueWrapper".
- DefaultFileLRUCachingMap(LRUCachingMapConfiguration, AbstractFileValueManager<K, V>) - Constructor for class dk.heick.caching.persistences.file.DefaultFileLRUCachingMap
-
Constructor
- DefaultFilenameFileReferenceLRUCachingMap - Class in dk.heick.caching.persistences.file.reference
-
Default implementation to support file references, Memory links to file.
The key is a String, which is stored in the filename (File.getName()) and be reconstructed.
- DefaultFilenameFileReferenceLRUCachingMap(LRUCachingMapConfiguration, CachingDirectory, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.reference.DefaultFilenameFileReferenceLRUCachingMap
-
Constructor.
- DefaultFilenameFileReferenceValueManager - Class in dk.heick.caching.persistences.file.reference
-
A ValueManager which holds file references.
Meaning that the key is a String which is stored in "file.getName()" and the value is File.
- DefaultFilenameFileReferenceValueManager(CachingDirectory, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.reference.DefaultFilenameFileReferenceValueManager
-
Constructor.
- DefaultFilenameSerializableFileValueManager<V extends Serializable> - Class in dk.heick.caching.persistences.file.serializable
-
This ValueManager will serialize and deserialize the value V to a file where the Key(K) is a String which is used as filename.
- DefaultFilenameSerializableFileValueManager(CachingDirectory, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.serializable.DefaultFilenameSerializableFileValueManager
-
Constructor
- DefaultFilenameXmlFileValueManager<V> - Class in dk.heick.caching.persistences.file.xml
-
This ValueManager will save and load the value V to a file using JAXB.
- DefaultFilenameXmlFileValueManager(CachingDirectory, Class<V>, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.xml.DefaultFilenameXmlFileValueManager
-
Constructor.
- DefaultFileValueWrapper<K,V> - Class in dk.heick.caching.persistences.file
-
The value wrapper that hold enough information to retrive a file containing the value.
- DefaultFileValueWrapper(K, File) - Constructor for class dk.heick.caching.persistences.file.DefaultFileValueWrapper
-
Construct a FileValueReference on the basis of an existing file, used when reinitializing the LRUCachingMap.
- DefaultGroupJPAEntityValueManager<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.jpa.grouped
-
The valueManager which handles key,values for CachedGroupJPAEntity using the CachedGroupJPAEntityRepository
.
- DefaultGroupJPAEntityValueManager(CachedGroupJPAEntityRepository<K, V>, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
Constructor.
- DefaultGroupJPAEntityValueManager(String, Class<? extends CachedGroupJPAEntity<K, V>>, EntityManagerFactory, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
Constructor.
- DefaultIndexedSerializableFileValueManager<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.file.serializable
-
Default implementation of AbstractIndexedFileValueManager, which stores the value as serialized files.
- DefaultIndexedSerializableFileValueManager(CachingDirectory, PersistencesRestoreMethod, int) - Constructor for class dk.heick.caching.persistences.file.serializable.DefaultIndexedSerializableFileValueManager
-
- DefaultIndexedXmlFileValueManager<K extends Serializable,V> - Class in dk.heick.caching.persistences.file.xml
-
The default implementation of AbstractIndexedFileValueManager which stores the value as XML files.
- DefaultIndexedXmlFileValueManager(CachingDirectory, Class<V>, PersistencesRestoreMethod, int) - Constructor for class dk.heick.caching.persistences.file.xml.DefaultIndexedXmlFileValueManager
-
Constructor.
- DefaultJPAEntityValueManager<K extends Serializable,V extends Serializable> - Class in dk.heick.caching.persistences.jpa.single
-
The valueManager which handles key,values for CachedJPAEntity using the CachedJPAEntityRepository
.
- DefaultJPAEntityValueManager(CachedJPAEntityRepository<K, V>, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.jpa.single.DefaultJPAEntityValueManager
-
Constructor
- DefaultKeyedSerializableFileValueManager<K extends Serializable,V extends Keyed<K> & Serializable> - Class in dk.heick.caching.persistences.file.serializable
-
This ValueManager will serialize and deserialize the value V to a file where the key is stored in the Value.
This requries that V implements Serializable
and Keyed
.
- DefaultKeyedSerializableFileValueManager(CachingDirectory, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.serializable.DefaultKeyedSerializableFileValueManager
-
Constructor
- DefaultKeyedXmlFileValueManager<K extends Serializable,V extends Keyed<K>> - Class in dk.heick.caching.persistences.file.xml
-
This ValueManager will save and load the value V to a file using JAXB.
- DefaultKeyedXmlFileValueManager(CachingDirectory, Class<V>, PersistencesRestoreMethod) - Constructor for class dk.heick.caching.persistences.file.xml.DefaultKeyedXmlFileValueManager
-
Constructor.
- DefaultLRUCachingMap<K,V> - Class in dk.heick.caching
-
Default implementation of LRUCachingMap, still using K,V as Key and Value.
- DefaultLRUCachingMap() - Constructor for class dk.heick.caching.DefaultLRUCachingMap
-
Default constructor, using DefaultLRUCachingMapConfiguration and DefaultMemoryValueManager.
- DefaultLRUCachingMap(LRUCachingMapConfiguration, ValueManager<K, V>) - Constructor for class dk.heick.caching.DefaultLRUCachingMap
-
Constructor.
- DefaultLRUCachingMapConfiguration - Class in dk.heick.caching
-
The default implementation of LRUCachingMapConfiguration.
- DefaultLRUCachingMapConfiguration() - Constructor for class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Default constructor using default parameters as constructor parameters.
- DefaultLRUCachingMapConfiguration(TimeSpan, TimeSpan, int, int, TimeSpan, boolean) - Constructor for class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Constructor.
- DefaultLRUCachingMapConfiguration(long, long, int, int, long, boolean) - Constructor for class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Constructor.
- DefaultMemoryLRUCachingMap<K,V> - Class in dk.heick.caching.memory
-
Default memory implementation for a DefaultLRUCachingMap.
- DefaultMemoryLRUCachingMap(LRUCachingMapConfiguration) - Constructor for class dk.heick.caching.memory.DefaultMemoryLRUCachingMap
-
Constructor.
- DefaultMemoryValueManager<K,V> - Class in dk.heick.caching.memory
-
A ValueManager which holds values in memory.
- DefaultMemoryValueManager() - Constructor for class dk.heick.caching.memory.DefaultMemoryValueManager
-
Constructor
- DefaultMemoryValueWrapper<K,V> - Class in dk.heick.caching.memory
-
Default value wrapper to hold the value in memory.
- DefaultMemoryValueWrapper(K, V) - Constructor for class dk.heick.caching.memory.DefaultMemoryValueWrapper
-
Constructor.
- DefaultSubDirectoryCreator - Class in dk.heick.caching.persistences.file.subdirectory
-
Default implementation of SubDirectoryCreator, will simply return the base directory.
- DefaultSubDirectoryCreator() - Constructor for class dk.heick.caching.persistences.file.subdirectory.DefaultSubDirectoryCreator
-
Constructor.
- delete() - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
Delete everything inside the "directory" which matches the filter and recursive.
- delete(K) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
This will delete a row in the table with the key and with the "group".
- delete(K) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- delete(K) - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
This will delete a row in the table with the key.
- delete(K) - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- deleteAll(Date) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Delete all rows from this table where "CachedGroupJPAEntity.getExpireDateTime()
" is below belowExpireDateTime and with this "group".
- deleteAll() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Delete all rows from the table with this "group"
- deleteAll() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- deleteAll(Date) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- deleteAll(Date) - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Delete all rows from this table where "CachedJPAEntity.getExpireDateTime()
" is below belowExpireDateTime.
- deleteAll() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Delete all rows from the table.
- deleteAll() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- deleteAll(Date) - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- diff(TimeSpan, TimeSpan) - Static method in class dk.heick.caching.utils.TimeSpan
-
The Math.abs() differences between two timespans.
- dk.heick.caching - package dk.heick.caching
-
- dk.heick.caching.memory - package dk.heick.caching.memory
-
- dk.heick.caching.persistences - package dk.heick.caching.persistences
-
- dk.heick.caching.persistences.file - package dk.heick.caching.persistences.file
-
- dk.heick.caching.persistences.file.reference - package dk.heick.caching.persistences.file.reference
-
- dk.heick.caching.persistences.file.serializable - package dk.heick.caching.persistences.file.serializable
-
- dk.heick.caching.persistences.file.subdirectory - package dk.heick.caching.persistences.file.subdirectory
-
- dk.heick.caching.persistences.file.utils - package dk.heick.caching.persistences.file.utils
-
- dk.heick.caching.persistences.file.xml - package dk.heick.caching.persistences.file.xml
-
- dk.heick.caching.persistences.jpa - package dk.heick.caching.persistences.jpa
-
- dk.heick.caching.persistences.jpa.grouped - package dk.heick.caching.persistences.jpa.grouped
-
- dk.heick.caching.persistences.jpa.single - package dk.heick.caching.persistences.jpa.single
-
- dk.heick.caching.utils - package dk.heick.caching.utils
-
- dueIn(Date, Date) - Method in class dk.heick.caching.utils.TimeSpan
-
The number of milleseconds before a timespan is due for two dates
- dueIn(Date) - Method in class dk.heick.caching.utils.TimeSpan
-
The number of milleseconds before a timespan is due for a date and NOW
- get(K) - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- get(K) - Method in interface dk.heick.caching.LRUCachingMap
-
Gets a Value for a corresponding Key.
- get(K) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Gets a row with the key and group.
- get(K) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- get(K) - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Gets a row with the key.
- get(K) - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- getAll() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Get all rows from the table with this "group"
- getAll() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- getAll() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Get all rows from the table
- getAll() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- getCachingDirectory() - Method in class dk.heick.caching.persistences.file.AbstractFileValueManager
-
The directory to store the Value as a file.
- getCaption() - Method in class dk.heick.caching.utils.TimeSpan
-
Creates a readable text caption for the Timespan.
- getCleanupIntervalTime() - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- getCleanupIntervalTime() - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How long interval between cleanup is performed by an internal thread.
- getConfiguration() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getConfiguration() - Method in interface dk.heick.caching.LRUCachingMap
-
Gets the configuration instance
- getDays(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X days.
- getDays() - Method in class dk.heick.caching.utils.TimeSpan
-
How many days the timespan covers, minus all the rest.
- getDefaultName() - Method in class dk.heick.caching.persistences.file.subdirectory.CharactersSubDirectoryCreator
-
The default subdirectory name if "key" string length is below "subDirectoriesNameLength".
- getDirectory() - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
The caching directory of which must exists and be of type directory.
- getEntityClazz() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Gets the class instance of CachedGroupJPAEntity.
- getEntityClazz() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- getEntityClazz() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Gets the class instance of CachedJPAEntity.
- getEntityClazz() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- getEntityManagerFactory() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Gets the EntityManagerFactory.
- getEntityManagerFactory() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- getEntityManagerFactory() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
Gets the EntityManagerFactory.
- getEntityManagerFactory() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- getExpirationDateTime(K) - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getExpirationDateTime(K) - Method in interface dk.heick.caching.LRUCachingMap
-
When do the key expire.
- getExpirationTimeSpan(K) - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getExpirationTimeSpan() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getExpirationTimeSpan(K) - Method in interface dk.heick.caching.LRUCachingMap
-
Gets the expiration timespan for a key.
- getExpirationTimeSpan() - Method in interface dk.heick.caching.LRUCachingMap
-
The timespan in milliseconds, between the oldest and youngest key
- getExpireDateTime() - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Gets the expire datetime
- getExpireTime() - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- getExpireTime() - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How many milliseconds a key may be in the cache per default, before it is removed from cache.
- getExtendTime() - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- getExtendTime() - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
When a Key is retrieved from the class via get(K key) the Key/Value pair can has it expire time extended.
- getFile(AbstractValueWrapper<K, V>) - Method in class dk.heick.caching.persistences.file.AbstractFileValueManager
-
Gets the file where the value is stored.
- getFile(K) - Method in class dk.heick.caching.persistences.file.DefaultFileLRUCachingMap
-
Gets the file where the value is stored in.
- getFile() - Method in class dk.heick.caching.persistences.file.DefaultFileValueWrapper
-
The file containing the value.
- getGroup() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
Gets the group name for this repository, is part of the ID for CachedGroupJPAEntity.
- getGroup() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAID
-
Gets the group.
- getGroup() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- getHours(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X hours.
- getHours() - Method in class dk.heick.caching.utils.TimeSpan
-
How many hours the timespan covers, minus all the rest.
- getId() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntity
-
Gets the CachedGroupJPAID
- getIndexSaveInterval() - Method in class dk.heick.caching.persistences.file.AbstractIndexedFileValueManager
-
How many changes must be made before the index "File-to-Key" hashtable is persisted.
- getKey() - Method in class dk.heick.caching.persistences.file.DefaultFileValueWrapper
-
Gets the key
- getKey() - Method in interface dk.heick.caching.persistences.file.Keyed
-
Gets the key
- getKey() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAID
-
Gets the key.
- getKey() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntity
-
Gets the key.
- getKey() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAValueWrapper
-
Gets the key.
- getKeys() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getKeys() - Method in interface dk.heick.caching.LRUCachingMap
-
Get the keys in a iterator.
- getLastCleanupDateTime() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getLastCleanupDateTime() - Method in interface dk.heick.caching.LRUCachingMap
-
Gets the last time the cleanup method was performed
- getLogger() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getLogger() - Method in interface dk.heick.caching.LRUCachingMap
-
A logger for getting metrics on how the caching is performing.
- getLogger() - Method in class dk.heick.caching.memory.DefaultMemoryValueManager
-
- getLogger() - Method in class dk.heick.caching.persistences.AbstractPersistenceValueManager
-
- getLogger() - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
Gets the logger
- getLogger() - Method in interface dk.heick.caching.ValueManager
-
A logger for getting metrics on how the caching is performing.
- getMaxExtendCount() - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- getMaxExtendCount() - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How many times an Key/Value pair is allowed to be extended in expiretime.
- getMaxSize() - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- getMaxSize() - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How many keys is maximum allowed in the class, if exceeded the oldest entries is removed until below maxSize.
- getMilliSeconds(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X years.
- getMilliseconds() - Method in class dk.heick.caching.utils.TimeSpan
-
How many milliseconds the timespan covers, minus all the rest.
- getMinutes(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X minutes.
- getMinutes() - Method in class dk.heick.caching.utils.TimeSpan
-
How many minutes the timespan covers, minus all the rest.
- getMonths(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X months.
- getName() - Method in class dk.heick.caching.utils.TimeSpan
-
The TimeSpan name
- getNextToExpire() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getNextToExpire() - Method in interface dk.heick.caching.LRUCachingMap
-
Gets the next key which has the lowest expiration date time.
- getParsableText() - Method in class dk.heick.caching.utils.TimeSpan
-
Using the "milliseconds, seconds, minutes, hours, days, years" values constructing a value which can be parsed by TimeSpan.parse(String)
.
- getPersistencesRestoreMethod() - Method in class dk.heick.caching.persistences.AbstractPersistenceValueManager
-
The restoration method, when reconstructing the LRUCachingMap.
- getRepository() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
Gets the "CachedGroupJPAEntityRepository" instance.
- getRepository() - Method in class dk.heick.caching.persistences.jpa.single.DefaultJPAEntityValueManager
-
An instance of CachedJPAEntityRepository.
- getSeconds(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X years.
- getSeconds() - Method in class dk.heick.caching.utils.TimeSpan
-
How many seconds the timespan covers, minus all the rest.
- getSpan() - Method in class dk.heick.caching.utils.TimeSpan
-
The primary value, from which all other values eminates.
- getStoreDateTime(K) - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getStoreDateTime(K) - Method in interface dk.heick.caching.LRUCachingMap
-
When was the Key stored in the cache.
- getStoredDateTime() - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Gets the store datetime.
- getSubDirectoriesNameLength() - Method in class dk.heick.caching.persistences.file.subdirectory.CharactersSubDirectoryCreator
-
The length of the subdirectories created on the basis of the key.
- getSubDirectory(String) - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
From a filename "String" (which is the key) construct a subdirectory if needed to put the value files in different directories.
This could be to limit the the number of files in a directory, or be able to view a sub directory with certain type of values.
This will use the "SubDirectoryCreator" (if any) to a create a sub directory to store the value file in, this is only allowed is recursive is true
.
The default behaviour is that there is no "SubDirectoryCreator", and all files will be stored directly in the caching directory.
- getSubDirectory(File, String) - Method in class dk.heick.caching.persistences.file.subdirectory.CharactersSubDirectoryCreator
-
- getSubDirectory(File, String) - Method in class dk.heick.caching.persistences.file.subdirectory.DefaultSubDirectoryCreator
-
- getSubDirectory(File, String) - Method in interface dk.heick.caching.persistences.file.subdirectory.SubDirectoryCreator
-
Construct a sub
- getSubDirectoryCreator() - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
Gets the SubDirectoryCreator
- getUnitName() - Method in enum dk.heick.caching.utils.TimeSpanUnit
-
The unit name
- getUnitName(long) - Method in enum dk.heick.caching.utils.TimeSpanUnit
-
The unit name as singular or prural.
- getUnitSpanInMilliSeconds() - Method in enum dk.heick.caching.utils.TimeSpanUnit
-
The unit timespan in milliseconds.
- getValue() - Method in class dk.heick.caching.memory.DefaultMemoryValueWrapper
-
Gets the value from memory.
- getValue() - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Gets the value.
- getValueManager() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- getValueManager() - Method in interface dk.heick.caching.LRUCachingMap
-
The manager class which handles the wrapped values, so it either can be stored in memory, file, db, etc...
- getValueWrapper(K) - Method in class dk.heick.caching.DefaultLRUCachingMap
-
Gets the "AbstractValueWrapper<K,V>" for the value.
- getWeeks(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X weeks.
- getXmlClazz() - Method in class dk.heick.caching.persistences.file.xml.DefaultFilenameXmlFileValueManager
-
The class name of V.
- getXmlClazz() - Method in class dk.heick.caching.persistences.file.xml.DefaultIndexedXmlFileValueManager
-
The class name of V.
- getXmlClazz() - Method in class dk.heick.caching.persistences.file.xml.DefaultKeyedXmlFileValueManager
-
The class name of V.
- getYears(int) - Static method in class dk.heick.caching.utils.TimeSpan
-
Generates a Timespan of X years.
- getYears() - Method in class dk.heick.caching.utils.TimeSpan
-
How many years the timespan covers, minus all the rest.
- SECONDS_01 - Static variable in class dk.heick.caching.utils.TimeSpan
-
1 second
- SECONDS_15 - Static variable in class dk.heick.caching.utils.TimeSpan
-
15 seconds
- SECONDS_30 - Static variable in class dk.heick.caching.utils.TimeSpan
-
30 seconds
- SECONDS_45 - Static variable in class dk.heick.caching.utils.TimeSpan
-
45 seconds
- SECONDS_60 - Static variable in class dk.heick.caching.utils.TimeSpan
-
60seconds
- SerializableUtils<T extends Serializable> - Class in dk.heick.caching.persistences.file.utils
-
Serializable Utils.
- SerializableUtils() - Constructor for class dk.heick.caching.persistences.file.utils.SerializableUtils
-
Constructor.
- setCleanupIntervalTime(long) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Setting this value AFTER the LRUCachingMap has been constructed has NO effect !!!!.
- setCleanupIntervalTime(long) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
Set the cleanup interval in milliseconds.
- setCleanupIntervalTimeSpan(TimeSpan) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Sets the cleanupIntervalTime using a TimeSpan.
- setExpireDateTime(Date) - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Sets the value expire datetime.
- setExpireTime(long) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- setExpireTime(long) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
Set the expireTime for a key in milliseconds.
- setExpireTimeSpan(TimeSpan) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Sets the expireTime using a TimeSpan.
- setExtendTime(long) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- setExtendTime(long) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How many milliseconds a "key"'s expire time is extended in milliseconds everytime is it "get" from a "LRUCachingMap".
- setExtendTimeSpan(TimeSpan) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
Sets the extendTime using a TimeSpan.
- setGroup(String) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAID
-
Sets the group.
- setId(CachedGroupJPAID<K>) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntity
-
Sets the CachedGroupJPAID id.
- setKey(K) - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAID
-
Sets the key
- setKey(K) - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntity
-
Sets the key.
- setMaxExtendCount(int) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- setMaxExtendCount(int) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
How many times a "key"'s expire time is allowed to be extended.
- setMaxSize(int) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- setMaxSize(int) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
The maximum number of elements in a LRUCachingMap before "cleanup" is performed to reduce the map size.
- setPersistedValuesInMemory(boolean) - Method in class dk.heick.caching.DefaultLRUCachingMapConfiguration
-
- setPersistedValuesInMemory(boolean) - Method in interface dk.heick.caching.LRUCachingMapConfiguration
-
If the values for persisted LRUCachingMaps should be held in memory or not.
If false
the values for persisted storage will have to retrieved from persisted storage for each get, if true
all values is held in memory as well, this will have an effect on your memory usage.
- setStoredDateTime(Date) - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Sets the store date time.
- setSubDirectoryCreator(SubDirectoryCreator) - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
Sets the SubDirectoryCreator
- setValue(V) - Method in class dk.heick.caching.memory.DefaultMemoryValueWrapper
-
Sets the value in memory.
- setValue(V) - Method in interface dk.heick.caching.persistences.jpa.CommonCachedJPAEntity
-
Sets the value.
- size() - Method in class dk.heick.caching.DefaultLRUCachingMap
-
- size() - Method in interface dk.heick.caching.LRUCachingMap
-
The number of unique keys in the cache.
- size() - Method in class dk.heick.caching.persistences.file.CachingDirectory
-
The number of files and directories in the directory, not resursive.
- size() - Method in interface dk.heick.caching.persistences.jpa.grouped.CachedGroupJPAEntityRepository
-
The number of rows in the table with the "group".
- size() - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultCachedGroupJPAEntityRepository
-
- size() - Method in interface dk.heick.caching.persistences.jpa.single.CachedJPAEntityRepository
-
The number of rows in the table
- size() - Method in class dk.heick.caching.persistences.jpa.single.DefaultCachedJPAEntityRepository
-
- storeFileValue(DefaultFileValueWrapper<String, V>, String, V) - Method in class dk.heick.caching.persistences.file.AbstractFilenameFileValueManager
-
This method shall the take the Value and stored it in a file given by the valueWrapper.
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.AbstractIndexedFileValueManager
-
This method shall the take the Value and stored it in a file given by the valueWrapper.
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.AbstractKeyedFileValueManager
-
This method shall the take the Value and stored it in a file given by the valueWrapper.
- storeFileValue(DefaultFileValueWrapper<String, V>, String, V) - Method in class dk.heick.caching.persistences.file.serializable.DefaultFilenameSerializableFileValueManager
-
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.serializable.DefaultIndexedSerializableFileValueManager
-
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.serializable.DefaultKeyedSerializableFileValueManager
-
- storeFileValue(DefaultFileValueWrapper<String, V>, String, V) - Method in class dk.heick.caching.persistences.file.xml.DefaultFilenameXmlFileValueManager
-
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.xml.DefaultIndexedXmlFileValueManager
-
- storeFileValue(DefaultFileValueWrapper<K, V>, K, V) - Method in class dk.heick.caching.persistences.file.xml.DefaultKeyedXmlFileValueManager
-
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in class dk.heick.caching.memory.DefaultMemoryValueManager
-
- storeValue(AbstractValueWrapper<String, V>, String, V, Date) - Method in class dk.heick.caching.persistences.file.AbstractFilenameFileValueManager
-
Stores the value and giving the ValueWrapper enough information to retrieve/remove it again.
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in class dk.heick.caching.persistences.file.AbstractIndexedFileValueManager
-
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in class dk.heick.caching.persistences.file.AbstractKeyedFileValueManager
-
- storeValue(AbstractValueWrapper<String, File>, String, File, Date) - Method in class dk.heick.caching.persistences.file.reference.DefaultFilenameFileReferenceValueManager
-
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in class dk.heick.caching.persistences.jpa.grouped.DefaultGroupJPAEntityValueManager
-
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in class dk.heick.caching.persistences.jpa.single.DefaultJPAEntityValueManager
-
- storeValue(AbstractValueWrapper<K, V>, K, V, Date) - Method in interface dk.heick.caching.ValueManager
-
Stores the value and giving the ValueWrapper enough information to retrieve/remove it again.
- SubDirectoryCreator - Interface in dk.heick.caching.persistences.file.subdirectory
-
A interface for creating a subdirectory in the caching directory.
An instance of this interface is called in "CachingDirectory.getSubDirectory()".
- substract(TimeSpan) - Method in class dk.heick.caching.utils.TimeSpan
-
Subtracts a TimeSpan value to the current in a new TimeSpan instance.
- substract(TimeSpan, int) - Method in class dk.heick.caching.utils.TimeSpan
-
Subtracts a TimeSpan value, which is mulitiplied with a factor, to the current TimeSpan in a new TimeSpan instance.
- substract(long) - Method in class dk.heick.caching.utils.TimeSpan
-
Subtracts a milliseconds value to the current TimeSpan in a new TimeSpan instance.