Class OnionMessageProvider


  • public class OnionMessageProvider
    extends Object
    A trait indicating an object may generate onion messages to send
    • Method Detail

      • 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.
      • 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