Schnittstelle StreamClientConfiguration

Alle bekannten Implementierungsklassen:
AbstractStreamClientConfiguration, StreamClientConfigurationImpl

public interface StreamClientConfiguration
Collection of typically needed configuration settings.
Autor:
Christian Bauer
  • Methodendetails

    • getRequestExecutorService

      ExecutorService 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 is UpnpServiceConfiguration.getSyncProtocolExecutorService().
      Gibt zurück:
      The ExecutorService to use for actual sending of HTTP requests.
    • getTimeoutSeconds

      int getTimeoutSeconds()
      Gibt zurück:
      The number of seconds to wait for a request to expire, spanning connect and data-reads.
    • getRetryIterations

      int getRetryIterations()
      Gibt zurück:
      Configured value or default of 5 retries.
    • getLogWarningSeconds

      int getLogWarningSeconds()
      Gibt zurück:
      If the request completion takes longer than this, a warning will be logged (0 to disable)
    • getRetryAfterSeconds

      int getRetryAfterSeconds()
      Gibt zurück:
      A request will not be executed again if it has failed in the last X seconds (0 to disable)
    • getUserAgentValue

      String getUserAgentValue(int majorVersion, int minorVersion)
      Used 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.