// 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-ClientConnectionManager"))]
__jni_bindgen! {
/// public interface [ClientConnectionManager](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html)
///
/// Required feature: "org-apache-http-conn-ClientConnectionManager"
public interface ClientConnectionManager ("org/apache/http/conn/ClientConnectionManager") extends crate::java::lang::Object {
/// [getSchemeRegistry](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#getSchemeRegistry())
///
/// Required features: "org-apache-http-conn-scheme-SchemeRegistry"
#[cfg(any(feature = "all", all(feature = "org-apache-http-conn-scheme-SchemeRegistry")))]
pub fn getSchemeRegistry<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::SchemeRegistry>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "getSchemeRegistry", .descriptor == "()Lorg/apache/http/conn/scheme/SchemeRegistry;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "getSchemeRegistry\0", "()Lorg/apache/http/conn/scheme/SchemeRegistry;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [requestConnection](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#requestConnection(org.apache.http.conn.routing.HttpRoute,%20java.lang.Object))
///
/// Required features: "java-lang-Object", "org-apache-http-conn-ClientConnectionRequest", "org-apache-http-conn-routing-HttpRoute"
#[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "org-apache-http-conn-ClientConnectionRequest", feature = "org-apache-http-conn-routing-HttpRoute")))]
pub fn requestConnection<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::routing::HttpRoute>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::ClientConnectionRequest>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "requestConnection", .descriptor == "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ClientConnectionRequest;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "requestConnection\0", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ClientConnectionRequest;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [releaseConnection](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#releaseConnection(org.apache.http.conn.ManagedClientConnection,%20long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-util-concurrent-TimeUnit", "org-apache-http-conn-ManagedClientConnection"
#[cfg(any(feature = "all", all(feature = "java-util-concurrent-TimeUnit", feature = "org-apache-http-conn-ManagedClientConnection")))]
pub fn releaseConnection<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::ManagedClientConnection>>, arg1: i64, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "releaseConnection", .descriptor == "(Lorg/apache/http/conn/ManagedClientConnection;JLjava/util/concurrent/TimeUnit;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "releaseConnection\0", "(Lorg/apache/http/conn/ManagedClientConnection;JLjava/util/concurrent/TimeUnit;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [closeIdleConnections](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#closeIdleConnections(long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-util-concurrent-TimeUnit")))]
pub fn closeIdleConnections<'env>(&'env self, arg0: i64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "closeIdleConnections", .descriptor == "(JLjava/util/concurrent/TimeUnit;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "closeIdleConnections\0", "(JLjava/util/concurrent/TimeUnit;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [closeExpiredConnections](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#closeExpiredConnections())
pub fn closeExpiredConnections<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "closeExpiredConnections", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "closeExpiredConnections\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [shutdown](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionManager.html#shutdown())
pub fn shutdown<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ClientConnectionManager", java.flags == PUBLIC | ABSTRACT, .name == "shutdown", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionManager\0", "shutdown\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}