public class MediaCache
extends java.lang.Object
| Constructor and Description |
|---|
MediaCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
flushAndForceItemFromCache(java.lang.String mediaName)
Purges an assed from the cache even if it's being used.
|
void |
flushAndForceStreamNameFromCache(IApplicationInstance appInstance,
java.lang.String streamName)
Same as
flushStreamNameFromCache(IApplicationInstance, String) except that it works with assets in use. |
void |
flushItemFromCache(java.lang.String mediaName)
Purges an assed from the cache if it's not being referenced or played by clients.
|
void |
flushStreamNameFromCache(IApplicationInstance appInstance,
java.lang.String streamName)
Purges an asset from the cache with the prefix.
|
public void flushItemFromCache(java.lang.String mediaName)
mediaName - the asset stream name minus the prefix and after any play aliasingpublic void flushStreamNameFromCache(IApplicationInstance appInstance, java.lang.String streamName)
appInstance - the application instance that we purge the asset instreamName - streamName with prefix, that is run through the aliasing to get resolved to proper media namepublic void flushAndForceItemFromCache(java.lang.String mediaName)
mediaName - the asset stream name minus the prefix and after any play aliasingpublic void flushAndForceStreamNameFromCache(IApplicationInstance appInstance, java.lang.String streamName)
flushStreamNameFromCache(IApplicationInstance, String) except that it works with assets in use.
The purge happens 30 seconds after the last user of the asset is disconnected.
Note: not included in the official docs, but mentioned hereappInstance - the application instance that we purge the asset instreamName - streamName with prefix, that is run through the aliasing to get resolved to proper media name