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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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
closeCache()
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
retrieveRawChunk(DvrManifestChunkEntry entry)
Given the specified manifest entry, return the raw DVR chunk.void
setContext(String context)
Set the full context for this cache
-
-
-
Method Detail
-
init
void init(IDvrStreamStore store)
Called to initialize the in-memory cache.- Parameters:
store
- The DVR stream store associated with this cache.
-
setContext
void setContext(String context)
Set the full context for this cache- Parameters:
context
-
-
retrieveRawChunk
com.wowza.wms.dvr.DvrChunk retrieveRawChunk(DvrManifestChunkEntry entry)
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
void 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 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.
-
-