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

#[repr(transparent)]
pub struct ForkJoinPool(_);

public class ForkJoinPool

Required feature: "java-util-concurrent-ForkJoinPool"

Methods

impl ForkJoinPool

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, ForkJoinPool>, Local<'env, Throwable>>
[src]

pub fn new_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Local<'env, ForkJoinPool>, Local<'env, Throwable>>
[src]

pub fn new_int_ForkJoinWorkerThreadFactory_UncaughtExceptionHandler_boolean<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env ForkJoinPool_ForkJoinWorkerThreadFactory>>,
    arg2: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>,
    arg3: bool
) -> Result<Local<'env, ForkJoinPool>, Local<'env, Throwable>>
[src]

ForkJoinPool

Required features: "java-lang-Thread_UncaughtExceptionHandler", "java-util-concurrent-ForkJoinPool_ForkJoinWorkerThreadFactory"

pub fn commonPool<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, ForkJoinPool>>, Local<'env, Throwable>>
[src]

commonPool

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

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

invoke

Required features: "java-lang-Object", "java-util-concurrent-ForkJoinTask"

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

execute

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

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

execute

Required features: "java-lang-Runnable"

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

submit

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

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

submit

Required features: "java-util-concurrent-Callable", "java-util-concurrent-ForkJoinTask"

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

submit

Required features: "java-lang-Object", "java-lang-Runnable", "java-util-concurrent-ForkJoinTask"

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

submit

Required features: "java-lang-Runnable", "java-util-concurrent-ForkJoinTask"

pub fn invokeAll<'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 getFactory<'env>(
    &'env self
) -> Result<Option<Local<'env, ForkJoinPool_ForkJoinWorkerThreadFactory>>, Local<'env, Throwable>>
[src]

getFactory

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

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

getUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

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

pub fn getCommonPoolParallelism<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

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

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

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

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

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

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

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

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

pub fn hasQueuedSubmissions<'env>(
    &'env self
) -> Result<bool, 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"

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 isTerminated<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

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

pub fn isShutdown<'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 awaitQuiescence<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<bool, Local<'env, Throwable>>
[src]

awaitQuiescence

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

pub fn managedBlock<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ForkJoinPool_ManagedBlocker>>
) -> Result<(), Local<'env, Throwable>>
[src]

managedBlock

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

pub fn defaultForkJoinWorkerThreadFactory<'env>(
    env: &'env Env
) -> Option<Local<'env, ForkJoinPool_ForkJoinWorkerThreadFactory>>
[src]

get public static final defaultForkJoinWorkerThreadFactory

Required feature: "java-util-concurrent-ForkJoinPool_ForkJoinWorkerThreadFactory"

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 ForkJoinPool

impl AsValidJObjectAndEnv for ForkJoinPool

impl Deref for ForkJoinPool

type Target = AbstractExecutorService

The resulting type after dereferencing.

impl JniType for ForkJoinPool

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.