Package org.red5.io
Class CachingFileKeyFrameMetaCache
- java.lang.Object
-
- org.red5.io.FileKeyFrameMetaCache
-
- org.red5.io.CachingFileKeyFrameMetaCache
-
- All Implemented Interfaces:
IKeyFrameMetaCache
public class CachingFileKeyFrameMetaCache extends FileKeyFrameMetaCache
-
-
Constructor Summary
Constructors Constructor Description CachingFileKeyFrameMetaCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IKeyFrameDataAnalyzer.KeyFrameMetaloadKeyFrameMeta(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)
-
-
-
Method Detail
-
loadKeyFrameMeta
public IKeyFrameDataAnalyzer.KeyFrameMeta loadKeyFrameMeta(File file)
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
public void removeKeyFrameMeta(File file)
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
public void saveKeyFrameMeta(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta)
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)
-
-