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

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

public class CompletableFuture

Required feature: java-util-concurrent-CompletableFuture

Methods

impl CompletableFuture

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

pub fn supply_async_supplier<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Supplier>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

supplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Supplier"

pub fn supply_async_supplier_executor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Supplier>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

supplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Supplier"

pub fn run_async_runnable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAsync

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

pub fn run_async_runnable_executor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor"

pub fn completed_future<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

completedFuture

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

pub fn is_done<'env>(&'env self) -> Result<bool>[src]

pub fn get<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

get

Required features: "java-lang-Object"

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

get

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

pub fn join<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

join

Required features: "java-lang-Object"

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

getNow

Required features: "java-lang-Object"

pub fn complete<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

complete

Required features: "java-lang-Object"

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

completeExceptionally

Required features: "java-lang-Throwable"

pub fn then_apply_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenApply

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn then_apply_async_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenApplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn then_apply_async_function_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenApplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn then_accept_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAccept

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Consumer"

pub fn then_accept_async_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAcceptAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Consumer"

pub fn then_accept_async_consumer_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAcceptAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Consumer"

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

thenRun

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

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

thenRunAsync

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

pub fn then_run_async_runnable_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenRunAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor"

pub fn then_combine_completion_stage_bi_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenCombine

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiFunction"

pub fn then_combine_async_completion_stage_bi_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenCombineAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiFunction"

pub fn then_combine_async_completion_stage_bi_function_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenCombineAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-BiFunction"

pub fn then_accept_both_completion_stage_bi_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAcceptBoth

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiConsumer"

pub fn then_accept_both_async_completion_stage_bi_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAcceptBothAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiConsumer"

pub fn then_accept_both_async_completion_stage_bi_consumer_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenAcceptBothAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-BiConsumer"

pub fn run_after_both_completion_stage_runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterBoth

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn run_after_both_async_completion_stage_runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterBothAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn run_after_both_async_completion_stage_runnable_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterBothAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor"

pub fn apply_to_either_completion_stage_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

applyToEither

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Function"

pub fn apply_to_either_async_completion_stage_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

applyToEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Function"

pub fn apply_to_either_async_completion_stage_function_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

applyToEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn accept_either_completion_stage_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

acceptEither

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Consumer"

pub fn accept_either_async_completion_stage_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

acceptEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Consumer"

pub fn accept_either_async_completion_stage_consumer_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

acceptEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-Consumer"

pub fn run_after_either_completion_stage_runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterEither

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn run_after_either_async_completion_stage_runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterEitherAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn run_after_either_async_completion_stage_runnable_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

runAfterEitherAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor"

pub fn then_compose_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenCompose

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn then_compose_async_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenComposeAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn then_compose_async_function_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

thenComposeAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn when_complete_bi_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

whenComplete

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiConsumer"

pub fn when_complete_async_bi_consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

whenCompleteAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiConsumer"

pub fn when_complete_async_bi_consumer_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

whenCompleteAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-BiConsumer"

pub fn handle_bi_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

handle

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiFunction"

pub fn handle_async_bi_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

handleAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiFunction"

pub fn handle_async_bi_function_executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

handleAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-BiFunction"

pub fn to_completable_future<'env>(
    &'env self
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

toCompletableFuture

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

pub fn exceptionally_function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>>
[src]

exceptionally

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

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

pub fn is_cancelled<'env>(&'env self) -> Result<bool>[src]

pub fn is_completed_exceptionally<'env>(&'env self) -> Result<bool>[src]

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

obtrudeValue

Required features: "java-lang-Object"

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

obtrudeException

Required features: "java-lang-Throwable"

pub fn get_number_of_dependents<'env>(&'env self) -> Result<i32>[src]

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

toString

Required features: "java-lang-String"

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<Future> for CompletableFuture

impl AsRef<CompletionStage> for CompletableFuture

impl Deref for CompletableFuture

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for CompletableFuture

impl AsJValue for CompletableFuture

Auto Trait Implementations

Blanket Implementations

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.

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

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

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