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 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 interface IDvrRawChunkProvider
        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 entry
        chunk - 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 - type
        int - index
        chunk - the chunk.