Package com.wowza.wms.dvr
Interface IDvrPurgeController
public interface IDvrPurgeController
Interface for controlling DVR chunk purging.
The purge controller is instantiated using a factory class DvrPurgeControllerFactory.
- See Also:
-
DvrPurgeControllerFactoryIDvrPrivateConstants.PROPERTY_PURGE_CONTROL_CLASS
-
Method Summary
Modifier and TypeMethodDescriptionlongGet current DVR time.longGet the DVR time when the last purge occurred.voidinit(IDvrStreamStore store) Initialize the controller.booleanIs Purging enabled for this controller.voidsetCurrentDvrTime(long newDvrTime) Set the current DVR time and perform purge if necessary.
-
Method Details
-
init
Initialize the controller.- Parameters:
store- the DVR stream store
-
isPurgingEnabled
boolean isPurgingEnabled()Is Purging enabled for this controller.- Returns:
- true if purging is active, false otherwise.
-
setCurrentDvrTime
void setCurrentDvrTime(long newDvrTime) Set the current DVR time and perform purge if necessary. This method checks the DVR time against its internal rules for purging and performs the purge. It is also responsible for setting the last purge time and the next purge time.- Parameters:
newDvrTime-
-
getCurrentTime
long getCurrentTime()Get current DVR time. The store is responsible for setting the DVR time via setCurrentDvrTime.- Returns:
- current DVR time.
-
getLastPurgeTime
long getLastPurgeTime()Get the DVR time when the last purge occurred.- Returns:
- DVR time of last purge
-