Uses of Class
org.ldk.structs.Event
-
Packages that use Event Package Description org.ldk.batteries org.ldk.structs -
-
Uses of Event in org.ldk.batteries
Methods in org.ldk.batteries with parameters of type Event Modifier and Type Method Description void
ChannelManagerConstructor.EventHandler. handle_event(Event events)
-
Uses of Event in org.ldk.structs
Subclasses of Event in org.ldk.structs Modifier and Type Class Description static class
Event.ChannelClosed
Used to indicate that a previously opened channel with the given `channel_id` is in the process of closure.static class
Event.ChannelPending
Used to indicate that a channel with the given `channel_id` is being opened and pending confirmation on-chain.static class
Event.ChannelReady
Used to indicate that a channel with the given `channel_id` is ready to be used.static class
Event.DiscardFunding
Used to indicate to the user that they can abandon the funding transaction and recycle the inputs for another purpose.static class
Event.FundingGenerationReady
Used to indicate that the client should generate a funding transaction with the given parameters and then call [`ChannelManager::funding_transaction_generated`].static class
Event.HTLCHandlingFailed
Indicates that the HTLC was accepted, but could not be processed when or after attempting to forward it.static class
Event.HTLCIntercepted
Used to indicate that we've intercepted an HTLC forward.static class
Event.OpenChannelRequest
Indicates a request to open a new channel by a peer.static class
Event.PaymentClaimable
Indicates that we've been offered a payment and it needs to be claimed via calling [`ChannelManager::claim_funds`] with the preimage given in [`PaymentPurpose`].static class
Event.PaymentClaimed
Indicates a payment has been claimed and we've received money! This most likely occurs when [`ChannelManager::claim_funds`] has been called in response to an [`Event::PaymentClaimable`].static class
Event.PaymentFailed
Indicates an outbound payment failed.static class
Event.PaymentForwarded
This event is generated when a payment has been successfully forwarded through us and a forwarding fee earned.static class
Event.PaymentPathFailed
Indicates an outbound HTLC we sent failed, likely due to an intermediary node being unable to handle the HTLC.static class
Event.PaymentPathSuccessful
Indicates that a path for an outbound payment was successful.static class
Event.PaymentSent
Indicates an outbound payment we made succeeded (i.e.static class
Event.PendingHTLCsForwardable
Used to indicate that [`ChannelManager::process_pending_htlc_forwards`] should be called at a time in the future.static class
Event.ProbeFailed
Indicates that a probe payment we sent failed at an intermediary node on the path.static class
Event.ProbeSuccessful
Indicates that a probe payment we sent returned successful, i.e., only failed at the destination.static class
Event.SpendableOutputs
Used to indicate that an output which you should know how to spend was confirmed on chain and is now spendable.Fields in org.ldk.structs declared as Event Modifier and Type Field Description Event
Option_EventZ.Some. some
Methods in org.ldk.structs that return Event Modifier and Type Method Description static Event
Event. channel_closed(byte[] channel_id, UInt128 user_channel_id, ClosureReason reason)
Utility method to constructs a new ChannelClosed-variant Eventstatic Event
Event. channel_pending(byte[] channel_id, UInt128 user_channel_id, byte[] former_temporary_channel_id, byte[] counterparty_node_id, OutPoint funding_txo)
Utility method to constructs a new ChannelPending-variant Eventstatic Event
Event. channel_ready(byte[] channel_id, UInt128 user_channel_id, byte[] counterparty_node_id, ChannelTypeFeatures channel_type)
Utility method to constructs a new ChannelReady-variant EventEvent
Event. clone()
Creates a copy of the Eventstatic Event
Event. discard_funding(byte[] channel_id, byte[] transaction)
Utility method to constructs a new DiscardFunding-variant Eventstatic Event
Event. funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, UInt128 user_channel_id)
Utility method to constructs a new FundingGenerationReady-variant EventEvent[]
ChannelMonitor. get_and_clear_pending_events()
Gets the list of pending events which were generated by previous actions, clearing the list in the process.static Event
Event. htlchandling_failed(byte[] prev_channel_id, HTLCDestination failed_next_destination)
Utility method to constructs a new HTLCHandlingFailed-variant Eventstatic Event
Event. htlcintercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat)
Utility method to constructs a new HTLCIntercepted-variant Eventstatic Event
Event. open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, ChannelTypeFeatures channel_type)
Utility method to constructs a new OpenChannelRequest-variant Eventstatic Event
Event. payment_claimable(byte[] receiver_node_id, byte[] payment_hash, RecipientOnionFields onion_fields, long amount_msat, PaymentPurpose purpose, byte[] via_channel_id, Option_u128Z via_user_channel_id, Option_u32Z claim_deadline)
Utility method to constructs a new PaymentClaimable-variant Eventstatic Event
Event. payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, PaymentPurpose purpose)
Utility method to constructs a new PaymentClaimed-variant Eventstatic Event
Event. payment_failed(byte[] payment_id, byte[] payment_hash, Option_PaymentFailureReasonZ reason)
Utility method to constructs a new PaymentFailed-variant Eventstatic Event
Event. payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, Option_u64Z fee_earned_msat, boolean claim_from_onchain_tx, Option_u64Z outbound_amount_forwarded_msat)
Utility method to constructs a new PaymentForwarded-variant Eventstatic Event
Event. payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean payment_failed_permanently, PathFailure failure, Path path, Option_u64Z short_channel_id)
Utility method to constructs a new PaymentPathFailed-variant Eventstatic Event
Event. payment_path_successful(byte[] payment_id, byte[] payment_hash, Path path)
Utility method to constructs a new PaymentPathSuccessful-variant Eventstatic Event
Event. payment_sent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, Option_u64Z fee_paid_msat)
Utility method to constructs a new PaymentSent-variant Eventstatic Event
Event. pending_htlcs_forwardable(long time_forwardable)
Utility method to constructs a new PendingHTLCsForwardable-variant Eventstatic Event
Event. probe_failed(byte[] payment_id, byte[] payment_hash, Path path, Option_u64Z short_channel_id)
Utility method to constructs a new ProbeFailed-variant Eventstatic Event
Event. probe_successful(byte[] payment_id, byte[] payment_hash, Path path)
Utility method to constructs a new ProbeSuccessful-variant Eventstatic Event
Event. spendable_outputs(SpendableOutputDescriptor[] outputs)
Utility method to constructs a new SpendableOutputs-variant EventMethods in org.ldk.structs with parameters of type Event Modifier and Type Method Description boolean
Event. eq(Event b)
Checks if two Events contain equal inner contents.void
EventHandler.EventHandlerInterface. handle_event(Event event)
Handles the given [`Event`].void
EventHandler. handle_event(Event event)
Handles the given [`Event`].static Option_EventZ
Option_EventZ. some(Event o)
Constructs a new COption_EventZ containing a crate::lightning::events::Event
-