// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-util-concurrent-ScheduledExecutorService"))]
__jni_bindgen! {
/// public interface [ScheduledExecutorService](https://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html)
///
/// Required feature: "java-util-concurrent-ScheduledExecutorService"
public interface ScheduledExecutorService ("java/util/concurrent/ScheduledExecutorService") extends crate::java::lang::Object, implements crate::java::util::concurrent::ExecutorService {
/// [schedule](https://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html#schedule(java.lang.Runnable,%20long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-lang-Runnable", feature = "java-util-concurrent-ScheduledFuture", feature = "java-util-concurrent-TimeUnit")))]
pub fn schedule_Runnable_long_TimeUnit<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Runnable>>, 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::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::concurrent::ScheduledFuture>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/concurrent/ScheduledExecutorService", java.flags == PUBLIC | ABSTRACT, .name == "schedule", .descriptor == "(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;"
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("java/util/concurrent/ScheduledExecutorService\0", "schedule\0", "(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [schedule](https://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html#schedule(java.util.concurrent.Callable,%20long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-util-concurrent-Callable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-util-concurrent-Callable", feature = "java-util-concurrent-ScheduledFuture", feature = "java-util-concurrent-TimeUnit")))]
pub fn schedule_Callable_long_TimeUnit<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::Callable>>, 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::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::concurrent::ScheduledFuture>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/concurrent/ScheduledExecutorService", java.flags == PUBLIC | ABSTRACT, .name == "schedule", .descriptor == "(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;"
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("java/util/concurrent/ScheduledExecutorService\0", "schedule\0", "(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [scheduleAtFixedRate](https://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html#scheduleAtFixedRate(java.lang.Runnable,%20long,%20long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-lang-Runnable", feature = "java-util-concurrent-ScheduledFuture", feature = "java-util-concurrent-TimeUnit")))]
pub fn scheduleAtFixedRate<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Runnable>>, arg1: i64, arg2: i64, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::concurrent::ScheduledFuture>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/concurrent/ScheduledExecutorService", java.flags == PUBLIC | ABSTRACT, .name == "scheduleAtFixedRate", .descriptor == "(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ScheduledExecutorService\0", "scheduleAtFixedRate\0", "(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [scheduleWithFixedDelay](https://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html#scheduleWithFixedDelay(java.lang.Runnable,%20long,%20long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-lang-Runnable", feature = "java-util-concurrent-ScheduledFuture", feature = "java-util-concurrent-TimeUnit")))]
pub fn scheduleWithFixedDelay<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Runnable>>, arg1: i64, arg2: i64, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::concurrent::ScheduledFuture>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/concurrent/ScheduledExecutorService", java.flags == PUBLIC | ABSTRACT, .name == "scheduleWithFixedDelay", .descriptor == "(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ScheduledExecutorService\0", "scheduleWithFixedDelay\0", "(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}