[−]Struct jni_android_sys::java::util::concurrent::ThreadPoolExecutor
public class ThreadPoolExecutor
Required feature: "java-util-concurrent-ThreadPoolExecutor"
Methods
impl ThreadPoolExecutor
pub fn new_int_int_long_TimeUnit_BlockingQueue<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue", "java-util-concurrent-TimeUnit"
pub fn new_int_int_long_TimeUnit_BlockingQueue_ThreadFactory<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env ThreadFactory>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env ThreadFactory>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue", "java-util-concurrent-ThreadFactory", "java-util-concurrent-TimeUnit"
pub fn new_int_int_long_TimeUnit_BlockingQueue_RejectedExecutionHandler<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue", "java-util-concurrent-RejectedExecutionHandler", "java-util-concurrent-TimeUnit"
pub fn new_int_int_long_TimeUnit_BlockingQueue_ThreadFactory_RejectedExecutionHandler<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env ThreadFactory>>,
arg6: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i64,
arg3: impl Into<Option<&'env TimeUnit>>,
arg4: impl Into<Option<&'env BlockingQueue>>,
arg5: impl Into<Option<&'env ThreadFactory>>,
arg6: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<Local<'env, ThreadPoolExecutor>, Local<'env, Throwable>>
Required features: "java-util-concurrent-BlockingQueue", "java-util-concurrent-RejectedExecutionHandler", "java-util-concurrent-ThreadFactory", "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 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"
Methods from Deref<Target = AbstractExecutorService>
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 invokeAny_Collection<'env>(
&'env self,
arg0: impl Into<Option<&'env Collection>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Collection>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-util-Collection"
pub fn invokeAny_Collection_long_TimeUnit<'env>(
&'env self,
arg0: impl Into<Option<&'env Collection>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Collection>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-util-Collection", "java-util-concurrent-TimeUnit"
pub fn invokeAll_Collection<'env>(
&'env self,
arg0: impl Into<Option<&'env Collection>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Collection>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-Collection", "java-util-List"
pub fn invokeAll_Collection_long_TimeUnit<'env>(
&'env self,
arg0: impl Into<Option<&'env Collection>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Collection>>,
arg1: i64,
arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-Collection", "java-util-List", "java-util-concurrent-TimeUnit"
Trait Implementations
impl AsJValue for ThreadPoolExecutor
impl AsValidJObjectAndEnv for ThreadPoolExecutor
impl Deref for ThreadPoolExecutor
type Target = AbstractExecutorService
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for ThreadPoolExecutor
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ThreadPoolExecutor
impl !Send for ThreadPoolExecutor
impl !Sync for ThreadPoolExecutor
impl Unpin for ThreadPoolExecutor
impl UnwindSafe for ThreadPoolExecutor
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>,