Enum Options

    • Method Detail

      • values

        public static Options[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Options c : Options.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Options valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • shouldAutoCloseResponseInputStream

        public static void shouldAutoCloseResponseInputStream​(boolean shouldAutoClose)
        Sets the boolean value to indicate if the SDK should auto-close the InputStream stream returned from the response once the stream has been read until the content-length of the stream Note : This has been added to automatically release connections from the connection pool when using the Apache Connector since the Apache Connector uses connection pooling by default
      • getShouldAutoCloseResponseInputStream

        public static boolean getShouldAutoCloseResponseInputStream()
        Returns the boolean indicating if the SDK should auto-close the InputStream returned from the response once the stream has been read until the content-length of the stream.
        Returns:
        true if the stream should be auto-closed
      • isTokenRefreshRetrierEnabled

        public static boolean isTokenRefreshRetrierEnabled()
        Returns the current status of token refresh retry enablement.
        Returns:
        true if token refresh retries are enabled; false otherwise.
      • isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName

        public static boolean isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName​(String className)
        Returns true if the ConnectionPoolingApacheConfigurator should be used for the given class name, provided it has been set as default configurator by the client.
        Parameters:
        className - fully-qualified class name of the client
        Returns:
        true if ConnectionPoolingApacheConfigurator should be used, provided it has been set by the client