[−]Struct jni_android_sys::java::util::concurrent::ScheduledThreadPoolExecutor
public class ScheduledThreadPoolExecutor
Required feature: "java-util-concurrent-ScheduledThreadPoolExecutor"
Methods
impl ScheduledThreadPoolExecutor
pub fn new_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
pub fn new_int_ThreadFactory<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ThreadFactory>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ThreadFactory>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-ThreadFactory"
pub fn new_int_RejectedExecutionHandler<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-RejectedExecutionHandler"
pub fn new_int_ThreadFactory_RejectedExecutionHandler<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ThreadFactory>>,
arg2: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ThreadFactory>>,
arg2: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ScheduledThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-RejectedExecutionHandler", "java-util-concurrent-ThreadFactory"
pub fn schedule_Runnable_long_TimeUnit<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
pub fn schedule_Callable_long_TimeUnit<'env>(
&'env self,
arg0: impl Into<Option<&'env Callable>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Callable>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-Callable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
pub fn scheduleAtFixedRate<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
pub fn scheduleWithFixedDelay<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, ScheduledFuture>>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-util-concurrent-ScheduledFuture", "java-util-concurrent-TimeUnit"
pub fn execute<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Runnable"
pub fn submit_Runnable<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-util-concurrent-Future"
pub fn submit_Runnable_Object<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-Runnable", "java-util-concurrent-Future"
pub fn submit_Callable<'env>(
&'env self,
arg0: impl Into<Option<&'env Callable>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Callable>>
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-Callable", "java-util-concurrent-Future"
pub fn setContinueExistingPeriodicTasksAfterShutdownPolicy<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getContinueExistingPeriodicTasksAfterShutdownPolicy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setExecuteExistingDelayedTasksAfterShutdownPolicy<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getExecuteExistingDelayedTasksAfterShutdownPolicy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setRemoveOnCancelPolicy<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getRemoveOnCancelPolicy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn shutdown<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn shutdownNow<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getQueue<'env>(
&'env self
) -> Result<Option<Local<'env, BlockingQueue>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BlockingQueue>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue"
Methods from Deref<Target = ThreadPoolExecutor>
pub fn execute<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Runnable"
pub fn shutdown<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn shutdownNow<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn isShutdown<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isTerminating<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isTerminated<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn awaitTermination<'env>(
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-util-concurrent-TimeUnit"
pub fn setThreadFactory<'env>(
&'env self,
arg0: impl Into<Option<&'env ThreadFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ThreadFactory>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-concurrent-ThreadFactory"
pub fn getThreadFactory<'env>(
&'env self
) -> Result<Option<Local<'env, ThreadFactory>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ThreadFactory>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-ThreadFactory"
pub fn setRejectedExecutionHandler<'env>(
&'env self,
arg0: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-concurrent-RejectedExecutionHandler"
pub fn getRejectedExecutionHandler<'env>(
&'env self
) -> Result<Option<Local<'env, RejectedExecutionHandler>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, RejectedExecutionHandler>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-RejectedExecutionHandler"
pub fn setCorePoolSize<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getCorePoolSize<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn prestartCoreThread<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn prestartAllCoreThreads<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn allowsCoreThreadTimeOut<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn allowCoreThreadTimeOut<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setMaximumPoolSize<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getMaximumPoolSize<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setKeepAliveTime<'env>(
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-concurrent-TimeUnit"
pub fn getKeepAliveTime<'env>(
&'env self,
arg0: impl Into<Option<&'env TimeUnit>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TimeUnit>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-concurrent-TimeUnit"
pub fn getQueue<'env>(
&'env self
) -> Result<Option<Local<'env, BlockingQueue>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BlockingQueue>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue"
pub fn remove<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Runnable"
pub fn purge<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getPoolSize<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getActiveCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getLargestPoolSize<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getTaskCount<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn getCompletedTaskCount<'env>(
&'env self
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i64, Local<'env, Throwable>>
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
Trait Implementations
impl AsJValue for ScheduledThreadPoolExecutor
impl AsRef<ScheduledExecutorService> for ScheduledThreadPoolExecutor
fn as_ref(&self) -> &ScheduledExecutorService
impl AsValidJObjectAndEnv for ScheduledThreadPoolExecutor
impl Deref for ScheduledThreadPoolExecutor
type Target = ThreadPoolExecutor
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for ScheduledThreadPoolExecutor
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ScheduledThreadPoolExecutor
impl !Send for ScheduledThreadPoolExecutor
impl !Sync for ScheduledThreadPoolExecutor
impl Unpin for ScheduledThreadPoolExecutor
impl UnwindSafe for ScheduledThreadPoolExecutor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,