com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>public interface IMediaCacheItemHTTPReaderFactory extends com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>
Interface for HTTP byte reader factory implementations
You need to have a IMediaCacehHTTPByteReader implementation available to use with your factory implementation.
In order to make implementation simpler and safer you should extend the factory base with
MediaCacheItemHTTPCustomFactory extends MediaCacheItemHTTPReaderFactoryBase
To use your own implementation you should add the following property to the HTTP media cache source entry
<Property>
<Name>httpReaderFactoryClass</Name>
<Value>com.wowza.streamschool.mediacache.ExampleHTTPReaderFactory</Value>
<Type>String</Type>
</Property>
The value points to the class name of your implementation.
| Modifier and Type | Method | Description |
|---|---|---|
void |
addProperties(WMSProperties properties) |
Add properties to this specific factory, these could be passed from
|
IMediaCacheHTTPByteReader |
createInstance() |
Create a HTTP byte reader suited to this factory.
|
void |
destroyInstance(IMediaCacheHTTPByteReader instance) |
Destroy the HTTP Byte reader associated with this factory implementation
|
int |
getConnectionTimeout() |
Get the current connection timeout set.
|
IMediaCacheItem |
getMediaCacheItem() |
Get the Media Cache item associated with this instance.
|
int |
getPort() |
Get the port to be used for connecting to the remote source.
|
int |
getReadRetries() |
Get the retries set for this instance
|
int |
getReadTimeout() |
Get the current read time out set.
|
int |
getReceiveBufferSize() |
Get the receive buffer size set.
|
int |
getSendBufferSize() |
Get the send buffer size set.
|
void |
init() |
Initialize the HTTP Reader Factory.
|
boolean |
isRequestFullURL() |
Set if the request should contain the full URL.
|
void |
setConnectionTimeout(int connectionTimeout) |
Set the connection timeout, milliseconds.
|
void |
setDestinationAddress(String host,
int port) |
Set the destination host and port where to retrieve data.
|
void |
setMediaCacheItem(IMediaCacheItem mediaCacheItem) |
Set the Media Cache item associated to this instance.
|
void |
setPort(int port) |
Set the port to be used for connecting to the remote source.
|
void |
setProxyAddress(String host,
int port) |
Set the proxy host and port.
|
void |
setReadRetries(int readRetries) |
Set the maximum number retries.
|
void |
setReadTimeout(int readTimeout) |
Set the read timeout for data, milliseconds.
|
void |
setReceiveBufferSize(int receiveBufferSize) |
Set the receive buffer size, byte size.
|
void |
setRequestFullURL(boolean requestFullURL) |
Flag to set if a full URL is required as part of the head/read request.
|
void |
setSendBufferSize(int sendBufferSize) |
Set the send buffer size, byte size.
|
void addProperties(WMSProperties properties)
WMSProperties - propertiesIMediaCacheHTTPByteReader createInstance()
createInstance in interface com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>void destroyInstance(IMediaCacheHTTPByteReader instance)
destroyInstance in interface com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>IMediaCacheHTTPByteReader - instanceint getConnectionTimeout()
IMediaCacheItem getMediaCacheItem()
int getPort()
int getReadRetries()
int getReadTimeout()
int getReceiveBufferSize()
int getSendBufferSize()
void init()
boolean isRequestFullURL()
void setConnectionTimeout(int connectionTimeout)
int - connectionTimeoutvoid setDestinationAddress(String host,
int port)
String - hostint - portvoid setMediaCacheItem(IMediaCacheItem mediaCacheItem)
IMediaCacheItem - mediaCacheItemvoid setPort(int port)
int - portvoid setProxyAddress(String host,
int port)
String - hostint - portvoid setReadRetries(int readRetries)
int - maxRetriesvoid setReadTimeout(int readTimeout)
int - readTimeoutvoid setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize - void setRequestFullURL(boolean requestFullURL)
boolean - requestFullURLvoid setSendBufferSize(int sendBufferSize)
sendBufferSize -