Package org.ldk.structs
Class FutureCallback
- java.lang.Object
-
- org.ldk.structs.FutureCallback
-
public class FutureCallback extends Object
A callback which is called when a [`Future`] completes. Note that this MUST NOT call back into LDK directly, it must instead schedule actions to be taken later. Rust users should use the [`std::future::Future`] implementation for [`Future`] instead. Note that the [`std::future::Future`] implementation may only work for runtimes which schedule futures when they receive a wake, rather than immediately executing them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFutureCallback.FutureCallbackInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall()The method which is called.protected voidfinalize()static FutureCallbacknew_impl(FutureCallback.FutureCallbackInterface arg)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
new_impl
public static FutureCallback new_impl(FutureCallback.FutureCallbackInterface arg)
-
call
public void call()
The method which is called.
-
-