Package org.ldk.structs
Class OnionMessageProvider
- java.lang.Object
-
- org.ldk.structs.OnionMessageProvider
-
public class OnionMessageProvider extends Object
A trait indicating an object may generate onion messages to send
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOnionMessageProvider.OnionMessageProviderInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static OnionMessageProvidernew_impl(OnionMessageProvider.OnionMessageProviderInterface arg)OnionMessagenext_onion_message_for_peer(byte[] peer_node_id)Gets the next pending onion message for the peer with the given node id.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
new_impl
public static OnionMessageProvider new_impl(OnionMessageProvider.OnionMessageProviderInterface arg)
-
next_onion_message_for_peer
@Nullable public OnionMessage next_onion_message_for_peer(byte[] peer_node_id)
Gets the next pending onion message for the peer with the given node id. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
-