[]Struct jni_android_sys::java::util::concurrent::ThreadPoolExecutor

#[repr(transparent)]
pub struct 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]

ThreadPoolExecutor

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]

ThreadPoolExecutor

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]

ThreadPoolExecutor

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]

ThreadPoolExecutor

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]

execute

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]

shutdownNow

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]

awaitTermination

Required features: "java-util-concurrent-TimeUnit"

pub fn setThreadFactory<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ThreadFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setThreadFactory

Required features: "java-util-concurrent-ThreadFactory"

pub fn getThreadFactory<'env>(
    &'env self
) -> Result<Option<Local<'env, ThreadFactory>>, Local<'env, Throwable>>
[src]

getThreadFactory

Required features: "java-util-concurrent-ThreadFactory"

pub fn setRejectedExecutionHandler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env RejectedExecutionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]

setRejectedExecutionHandler

Required features: "java-util-concurrent-RejectedExecutionHandler"

pub fn getRejectedExecutionHandler<'env>(
    &'env self
) -> Result<Option<Local<'env, RejectedExecutionHandler>>, Local<'env, Throwable>>
[src]

getRejectedExecutionHandler

Required features: "java-util-concurrent-RejectedExecutionHandler"

pub fn setCorePoolSize<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getCorePoolSize<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn prestartCoreThread<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn prestartAllCoreThreads<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn allowsCoreThreadTimeOut<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn allowCoreThreadTimeOut<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setMaximumPoolSize<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMaximumPoolSize<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setKeepAliveTime<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<(), Local<'env, Throwable>>
[src]

setKeepAliveTime

Required features: "java-util-concurrent-TimeUnit"

pub fn getKeepAliveTime<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TimeUnit>>
) -> Result<i64, Local<'env, Throwable>>
[src]

getKeepAliveTime

Required features: "java-util-concurrent-TimeUnit"

pub fn getQueue<'env>(
    &'env self
) -> Result<Option<Local<'env, BlockingQueue>>, Local<'env, Throwable>>
[src]

getQueue

Required features: "java-util-concurrent-BlockingQueue"

pub fn remove<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool, Local<'env, Throwable>>
[src]

remove

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]

pub fn getTaskCount<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getCompletedTaskCount<'env>(
    &'env self
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

submit

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]

submit

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]

submit

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]

invokeAny

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]

invokeAny

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]

invokeAll

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]

invokeAll

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.

impl JniType for ThreadPoolExecutor

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.