Package org.ldk.structs
Class OffersMessageHandler
- java.lang.Object
-
- org.ldk.structs.OffersMessageHandler
-
public class OffersMessageHandler extends Object
A handler for an [`OnionMessage`] containing a BOLT 12 Offers message as its payload. [`OnionMessage`]: crate::ln::msgs::OnionMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOffersMessageHandler.OffersMessageHandlerInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroys the object, freeing associated resources.protected voidfinalize()Option_OffersMessageZhandle_message(OffersMessage message)Handles the given message by either responding with an [`Bolt12Invoice`], sending a payment, or replying with an error.static OffersMessageHandlernew_impl(OffersMessageHandler.OffersMessageHandlerInterface arg)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
destroy
public void destroy()
Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
-
new_impl
public static OffersMessageHandler new_impl(OffersMessageHandler.OffersMessageHandlerInterface arg)
-
handle_message
public Option_OffersMessageZ handle_message(OffersMessage message)
Handles the given message by either responding with an [`Bolt12Invoice`], sending a payment, or replying with an error.
-
-