Package com.wowza.wms.dvr
Interface IDvrChunkMemoryCache
- 
- All Superinterfaces:
- IDvrRawChunkProvider
 
 public interface IDvrChunkMemoryCache extends 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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToCache(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.voidcloseCache()voidinit(IDvrStreamStore store)Called to initialize the in-memory cache.com.wowza.wms.dvr.DvrChunkretrieveRawChunk(int type, long index)com.wowza.wms.dvr.DvrChunkretrieveRawChunk(DvrManifestChunkEntry entry)Given the specified manifest entry, return the raw DVR chunk.voidsetContext(String context)Set the full context for this cache
 
- 
- 
- 
Method Detail- 
initvoid init(IDvrStreamStore store) Called to initialize the in-memory cache.- Parameters:
- store- The DVR stream store associated with this cache.
 
 - 
setContextvoid setContext(String context) Set the full context for this cache- Parameters:
- context-
 
 - 
retrieveRawChunkcom.wowza.wms.dvr.DvrChunk retrieveRawChunk(DvrManifestChunkEntry entry) Description copied from interface:IDvrRawChunkProviderGiven the specified manifest entry, return the raw DVR chunk.- Specified by:
- retrieveRawChunkin interface- IDvrRawChunkProvider
- Parameters:
- entry- The DVR manifest entry
- Returns:
- the DVR chunk or null if not able to return the chunk.
 
 - 
retrieveRawChunkcom.wowza.wms.dvr.DvrChunk retrieveRawChunk(int type, long index)
 - 
closeCachevoid closeCache() 
 - 
addToCachevoid addToCache(DvrManifestChunkEntry entry, 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:
- entry- DVR manifest entry
- chunk- the chunk.
 
 - 
addToCachevoid 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- type
- int- index
- chunk- the chunk.
 
 
- 
 
-