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 voidChannelManagerConstructor.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 classEvent.ChannelClosedUsed to indicate that a previously opened channel with the given `channel_id` is in the process of closure.static classEvent.DiscardFundingUsed to indicate to the user that they can abandon the funding transaction and recycle the inputs for another purpose.static classEvent.FundingGenerationReadyUsed to indicate that the client should generate a funding transaction with the given parameters and then call [`ChannelManager::funding_transaction_generated`].static classEvent.HTLCHandlingFailedIndicates that the HTLC was accepted, but could not be processed when or after attempting to forward it.static classEvent.OpenChannelRequestIndicates a request to open a new channel by a peer.static classEvent.PaymentClaimedIndicates 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::PaymentReceived`].static classEvent.PaymentFailedIndicates an outbound payment failed.static classEvent.PaymentForwardedThis event is generated when a payment has been successfully forwarded through us and a forwarding fee earned.static classEvent.PaymentPathFailedIndicates an outbound HTLC we sent failed.static classEvent.PaymentPathSuccessfulIndicates that a path for an outbound payment was successful.static classEvent.PaymentReceivedIndicates we've received (an offer of) money! Just gotta dig out that payment preimage and feed it to [`ChannelManager::claim_funds`] to get it....static classEvent.PaymentSentIndicates an outbound payment we made succeeded (i.e.static classEvent.PendingHTLCsForwardableUsed to indicate that [`ChannelManager::process_pending_htlc_forwards`] should be called at a time in the future.static classEvent.ProbeFailedIndicates that a probe payment we sent failed at an intermediary node on the path.static classEvent.ProbeSuccessfulIndicates that a probe payment we sent returned successful, i.e., only failed at the destination.static classEvent.SpendableOutputsUsed 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 EventOption_EventZ.Some. someMethods in org.ldk.structs that return Event Modifier and Type Method Description static EventEvent. channel_closed(byte[] channel_id, long user_channel_id, ClosureReason reason)Utility method to constructs a new ChannelClosed-variant EventEventEvent. clone()Creates a copy of the Eventstatic EventEvent. discard_funding(byte[] channel_id, byte[] transaction)Utility method to constructs a new DiscardFunding-variant Eventstatic EventEvent. funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, long 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 EventEvent. htlchandling_failed(byte[] prev_channel_id, HTLCDestination failed_next_destination)Utility method to constructs a new HTLCHandlingFailed-variant Eventstatic EventEvent. 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 EventEvent. payment_claimed(byte[] payment_hash, long amount_msat, PaymentPurpose purpose)Utility method to constructs a new PaymentClaimed-variant Eventstatic EventEvent. payment_failed(byte[] payment_id, byte[] payment_hash)Utility method to constructs a new PaymentFailed-variant Eventstatic EventEvent. payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, Option_u64Z fee_earned_msat, boolean claim_from_onchain_tx)Utility method to constructs a new PaymentForwarded-variant Eventstatic EventEvent. payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean rejected_by_dest, Option_NetworkUpdateZ network_update, boolean all_paths_failed, RouteHop[] path, Option_u64Z short_channel_id, RouteParameters retry)Utility method to constructs a new PaymentPathFailed-variant Eventstatic EventEvent. payment_path_successful(byte[] payment_id, byte[] payment_hash, RouteHop[] path)Utility method to constructs a new PaymentPathSuccessful-variant Eventstatic EventEvent. payment_received(byte[] payment_hash, long amount_msat, PaymentPurpose purpose)Utility method to constructs a new PaymentReceived-variant Eventstatic EventEvent. 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 EventEvent. pending_htlcs_forwardable(long time_forwardable)Utility method to constructs a new PendingHTLCsForwardable-variant Eventstatic EventEvent. probe_failed(byte[] payment_id, byte[] payment_hash, RouteHop[] path, Option_u64Z short_channel_id)Utility method to constructs a new ProbeFailed-variant Eventstatic EventEvent. probe_successful(byte[] payment_id, byte[] payment_hash, RouteHop[] path)Utility method to constructs a new ProbeSuccessful-variant Eventstatic EventEvent. 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 voidEventHandler.EventHandlerInterface. handle_event(Event event)Handles the given [`Event`].voidEventHandler. handle_event(Event event)Handles the given [`Event`].static Option_EventZOption_EventZ. some(Event o)Constructs a new COption_EventZ containing a crate::lightning::util::events::Event
-