Package com.wowza.wms.dvr
Interface IDvrChunkMemoryCache
- All Superinterfaces:
IDvrRawChunkProvider
Interface for managing in-memory cache of chunks.
The implementor is responsible for implementing the desired algorithm for keeping DVR chunks in memory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(int type, long index, com.wowza.wms.dvr.DvrChunk chunk) Provide in-memory cache the opportunity to add the DVR chunk to its cache.voidaddToCache(DvrManifestChunkEntry entry, com.wowza.wms.dvr.DvrChunk chunk) Provide in-memory cache the opportunity to add the DVR chunk to its cache.voidvoidinit(IDvrStreamStore store) Called to initialize the in-memory cache.com.wowza.wms.dvr.DvrChunkretrieveRawChunk(int type, long index) com.wowza.wms.dvr.DvrChunkGiven the specified manifest entry, return the raw DVR chunk.voidsetContext(String context) Set the full context for this cache
-
Method Details
-
init
Called to initialize the in-memory cache.- Parameters:
store- The DVR stream store associated with this cache.
-
setContext
Set the full context for this cache- Parameters:
context-
-
retrieveRawChunk
Description copied from interface:IDvrRawChunkProviderGiven the specified manifest entry, return the raw DVR chunk.- Specified by:
retrieveRawChunkin interfaceIDvrRawChunkProvider- Parameters:
entry- The DVR manifest entry- Returns:
- the DVR chunk or null if not able to return the chunk.
-
retrieveRawChunk
com.wowza.wms.dvr.DvrChunk retrieveRawChunk(int type, long index) -
closeCache
void closeCache() -
addToCache
Provide in-memory cache the opportunity to add the DVR chunk to its cache. The implementation may choose to cache the chunk or ignore it.- Parameters:
entry- DVR manifest entrychunk- the chunk.
-
addToCache
void addToCache(int type, long index, com.wowza.wms.dvr.DvrChunk chunk) Provide in-memory cache the opportunity to add the DVR chunk to its cache. The implementation may choose to cache the chunk or ignore it.- Parameters:
int- typeint- indexchunk- the chunk.
-