Schnittstelle StreamClientConfiguration
- Alle bekannten Implementierungsklassen:
- AbstractStreamClientConfiguration,- StreamClientConfigurationImpl
public interface StreamClientConfiguration
Collection of typically needed configuration settings.
- Autor:
- Christian Bauer
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungintUsed to execute the actual HTTP request, the StreamClient waits on the "current" thread for completion or timeout.intintintgetUserAgentValue(int majorVersion, int minorVersion) Used for outgoing HTTP requests if no other value was already set on messages.
- 
Methodendetails- 
getRequestExecutorServiceExecutorService getRequestExecutorService()Used to execute the actual HTTP request, the StreamClient waits on the "current" thread for completion or timeout. You probably want to use the same executor service for both, so usually this isUpnpServiceConfiguration.getSyncProtocolExecutorService().- Gibt zurück:
- The ExecutorServiceto use for actual sending of HTTP requests.
 
- 
getTimeoutSecondsint getTimeoutSeconds()- Gibt zurück:
- The number of seconds to wait for a request to expire, spanning connect and data-reads.
 
- 
getRetryIterationsint getRetryIterations()- Gibt zurück:
- Configured value or default of 5 retries.
 
- 
getLogWarningSecondsint getLogWarningSeconds()- Gibt zurück:
- If the request completion takes longer than this, a warning will be logged (0to disable)
 
- 
getRetryAfterSecondsint getRetryAfterSeconds()- Gibt zurück:
- A request will not be executed again if it has failed in the last X seconds (0to disable)
 
- 
getUserAgentValueUsed for outgoing HTTP requests if no other value was already set on messages.- Parameter:
- majorVersion- The UPnP UDA major version.
- minorVersion- The UPnP UDA minor version.
- Gibt zurück:
- The HTTP user agent value.
 
 
-