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 TypeMethodDescriptionvoid
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.void
addToCache
(DvrManifestChunkEntry entry, com.wowza.wms.dvr.DvrChunk chunk) Provide in-memory cache the opportunity to add the DVR chunk to its cache.void
void
init
(IDvrStreamStore store) Called to initialize the in-memory cache.com.wowza.wms.dvr.DvrChunk
retrieveRawChunk
(int type, long index) com.wowza.wms.dvr.DvrChunk
Given the specified manifest entry, return the raw DVR chunk.void
setContext
(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:IDvrRawChunkProvider
Given the specified manifest entry, return the raw DVR chunk.- Specified by:
retrieveRawChunk
in 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.
-