jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "org-apache-http-conn-params-ConnManagerParams"))]
__jni_bindgen! {
    /// public final class [ConnManagerParams](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html)
    ///
    /// Required feature: "org-apache-http-conn-params-ConnManagerParams"
    public final class ConnManagerParams ("org/apache/http/conn/params/ConnManagerParams") extends crate::java::lang::Object, implements crate::org::apache::http::conn::params::ConnManagerPNames {

        /// [ConnManagerParams](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#ConnManagerParams())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::conn::params::ConnManagerParams>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/params/ConnManagerParams\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getTimeout](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#getTimeout(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn getTimeout<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "getTimeout", .descriptor == "(Lorg/apache/http/params/HttpParams;)J"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "getTimeout\0", "(Lorg/apache/http/params/HttpParams;)J\0");
                __jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setTimeout](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#setTimeout(org.apache.http.params.HttpParams,%20long))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn setTimeout<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "setTimeout", .descriptor == "(Lorg/apache/http/params/HttpParams;J)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "setTimeout\0", "(Lorg/apache/http/params/HttpParams;J)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setMaxConnectionsPerRoute](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#setMaxConnectionsPerRoute(org.apache.http.params.HttpParams,%20org.apache.http.conn.params.ConnPerRoute))
        ///
        /// Required features: "org-apache-http-conn-params-ConnPerRoute", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-params-ConnPerRoute", feature = "org-apache-http-params-HttpParams")))]
        pub fn setMaxConnectionsPerRoute<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::params::ConnPerRoute>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "setMaxConnectionsPerRoute", .descriptor == "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/params/ConnPerRoute;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "setMaxConnectionsPerRoute\0", "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/params/ConnPerRoute;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMaxConnectionsPerRoute](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#getMaxConnectionsPerRoute(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-conn-params-ConnPerRoute", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-params-ConnPerRoute", feature = "org-apache-http-params-HttpParams")))]
        pub fn getMaxConnectionsPerRoute<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::params::ConnPerRoute>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "getMaxConnectionsPerRoute", .descriptor == "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/conn/params/ConnPerRoute;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "getMaxConnectionsPerRoute\0", "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/conn/params/ConnPerRoute;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setMaxTotalConnections](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#setMaxTotalConnections(org.apache.http.params.HttpParams,%20int))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn setMaxTotalConnections<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "setMaxTotalConnections", .descriptor == "(Lorg/apache/http/params/HttpParams;I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "setMaxTotalConnections\0", "(Lorg/apache/http/params/HttpParams;I)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMaxTotalConnections](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#getMaxTotalConnections(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn getMaxTotalConnections<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/params/ConnManagerParams", java.flags == PUBLIC | STATIC, .name == "getMaxTotalConnections", .descriptor == "(Lorg/apache/http/params/HttpParams;)I"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnManagerParams\0", "getMaxTotalConnections\0", "(Lorg/apache/http/params/HttpParams;)I\0");
                __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [DEFAULT_MAX_TOTAL_CONNECTIONS](https://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html#DEFAULT_MAX_TOTAL_CONNECTIONS)
        pub const DEFAULT_MAX_TOTAL_CONNECTIONS : i32 = 20;
    }
}