Package com.wowza.wms.dvr
Interface IDvrPurgeController
- 
 public interface IDvrPurgeControllerInterface for controlling DVR chunk purging. The purge controller is instantiated using a factory class DvrPurgeControllerFactory.- See Also:
- DvrPurgeControllerFactory,- IDvrPrivateConstants.PROPERTY_PURGE_CONTROL_CLASS
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCurrentTime()Get current DVR time.longgetLastPurgeTime()Get the DVR time when the last purge occurred.voidinit(IDvrStreamStore store)Initialize the controller.booleanisPurgingEnabled()Is Purging enabled for this controller.voidsetCurrentDvrTime(long newDvrTime)Set the current DVR time and perform purge if necessary.
 
- 
- 
- 
Method Detail- 
initvoid init(IDvrStreamStore store) Initialize the controller.- Parameters:
- store- the DVR stream store
 
 - 
isPurgingEnabledboolean isPurgingEnabled() Is Purging enabled for this controller.- Returns:
- true if purging is active, false otherwise.
 
 - 
setCurrentDvrTimevoid 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-
 
 - 
getCurrentTimelong getCurrentTime() Get current DVR time. The store is responsible for setting the DVR time via setCurrentDvrTime.- Returns:
- current DVR time.
 
 - 
getLastPurgeTimelong getLastPurgeTime() Get the DVR time when the last purge occurred.- Returns:
- DVR time of last purge
 
 
- 
 
-