com.mathworks.mps.client

Interface MWHttpClientConfig

    • Method Detail

      • getMaxConnectionsPerAddress

        int getMaxConnectionsPerAddress()
        Get maximum number of connections per address used by MWHttpClient to fulfill multiple simultaneous requests created by client. If this configuration is meant for non-interruptible instance of MWHttpClient, user defined implementations of this method must return -1.
        Returns:
        Maximum number of connections per address
      • getTimeOutMs

        long getTimeOutMs()
        Get the time out in milliseconds for a client to receive response from the server.
        Returns:
        Timeout in milliseconds
      • isInterruptible

        boolean isInterruptible()
        Tells whether this instance of MWHttpClientConfig can be used for an interruptible MWHttpClient
        Returns:
        true if this instance of MWHttpClientConfig can be used for an interruptible MWHttpClient else returns false
      • getResponseSizeLimit

        int getResponseSizeLimit()
        Get the maximum response size the client can accept.
        Returns:
        Maximum response size limit in bytes

Copyright 2010-2016 The MathWorks, Inc.