Package org.red5.io
Class CachingFileKeyFrameMetaCache
java.lang.Object
org.red5.io.FileKeyFrameMetaCache
org.red5.io.CachingFileKeyFrameMetaCache
- All Implemented Interfaces:
IKeyFrameMetaCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,IKeyFrameDataAnalyzer.KeyFrameMeta> private intprivate Randomprivate ReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidloadKeyFrameMeta(File file) Load keyframe informations for the given file.voidremoveKeyFrameMeta(File file) Remove keyframe information for given file.voidsaveKeyFrameMeta(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta) Store keyframe informations for the given file.voidsetMaxCacheEntry(int maxCacheEntry)
-
Field Details
-
inMemoryMetaCache
-
rwLock
-
maxCacheEntry
private int maxCacheEntry -
random
-
-
Constructor Details
-
CachingFileKeyFrameMetaCache
public CachingFileKeyFrameMetaCache()
-
-
Method Details
-
freeCachingMetadata
private void freeCachingMetadata() -
loadKeyFrameMeta
Description copied from class:FileKeyFrameMetaCacheLoad keyframe informations for the given file.- Specified by:
loadKeyFrameMetain interfaceIKeyFrameMetaCache- Overrides:
loadKeyFrameMetain classFileKeyFrameMetaCache- Parameters:
file- File to load informations for.- Returns:
- The keyframe informations or
nullif none exist.
-
removeKeyFrameMeta
Description copied from interface:IKeyFrameMetaCacheRemove keyframe information for given file. Need to update keyframe cache when re-writing file.- Specified by:
removeKeyFrameMetain interfaceIKeyFrameMetaCache- Overrides:
removeKeyFrameMetain classFileKeyFrameMetaCache- Parameters:
file- File to remove information for.
-
saveKeyFrameMeta
Description copied from class:FileKeyFrameMetaCacheStore keyframe informations for the given file.- Specified by:
saveKeyFrameMetain interfaceIKeyFrameMetaCache- Overrides:
saveKeyFrameMetain classFileKeyFrameMetaCache- Parameters:
file- File to save informations for.meta- Keyframe informations for this file.
-
setMaxCacheEntry
public void setMaxCacheEntry(int maxCacheEntry)
-