Package org.ldk.structs
Class MessageSendEvent
- java.lang.Object
-
- org.ldk.structs.MessageSendEvent
-
- Direct Known Subclasses:
MessageSendEvent.BroadcastChannelAnnouncement,MessageSendEvent.BroadcastChannelUpdate,MessageSendEvent.BroadcastNodeAnnouncement,MessageSendEvent.HandleError,MessageSendEvent.SendAcceptChannel,MessageSendEvent.SendAnnouncementSignatures,MessageSendEvent.SendChannelRangeQuery,MessageSendEvent.SendChannelReady,MessageSendEvent.SendChannelReestablish,MessageSendEvent.SendChannelUpdate,MessageSendEvent.SendClosingSigned,MessageSendEvent.SendFundingCreated,MessageSendEvent.SendFundingSigned,MessageSendEvent.SendGossipTimestampFilter,MessageSendEvent.SendOpenChannel,MessageSendEvent.SendReplyChannelRange,MessageSendEvent.SendRevokeAndACK,MessageSendEvent.SendShortIdsQuery,MessageSendEvent.SendShutdown,MessageSendEvent.UpdateHTLCs
public class MessageSendEvent extends Object
An event generated by ChannelManager which indicates a message should be sent to a peer (or broadcast to most peers). These events are handled by PeerManager::process_events if you are using a PeerManager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageSendEvent.BroadcastChannelAnnouncementUsed to indicate that a channel_announcement and channel_update should be broadcast to all peers (except the peer with node_id either msg.contents.node_id_1 or msg.contents.node_id_2).static classMessageSendEvent.BroadcastChannelUpdateUsed to indicate that a channel_update should be broadcast to all peers.static classMessageSendEvent.BroadcastNodeAnnouncementUsed to indicate that a node_announcement should be broadcast to all peers.static classMessageSendEvent.HandleErrorBroadcast an error downstream to be handledstatic classMessageSendEvent.SendAcceptChannelUsed to indicate that we've accepted a channel open and should send the accept_channel message provided to the given peer.static classMessageSendEvent.SendAnnouncementSignaturesUsed to indicate that an announcement_signatures message should be sent to the peer with the given node_id.static classMessageSendEvent.SendChannelRangeQueryQuery a peer for channels with funding transaction UTXOs in a block range.static classMessageSendEvent.SendChannelReadyUsed to indicate that a channel_ready message should be sent to the peer with the given node_id.static classMessageSendEvent.SendChannelReestablishUsed to indicate that a channel_reestablish message should be sent to the peer with the given node_id.static classMessageSendEvent.SendChannelUpdateUsed to indicate that a channel_update should be sent to a single peer.static classMessageSendEvent.SendClosingSignedUsed to indicate that a closing_signed message should be sent to the peer with the given node_id.static classMessageSendEvent.SendFundingCreatedUsed to indicate that a funding_created message should be sent to the peer with the given node_id.static classMessageSendEvent.SendFundingSignedUsed to indicate that a funding_signed message should be sent to the peer with the given node_id.static classMessageSendEvent.SendGossipTimestampFilterSends a timestamp filter for inbound gossip.static classMessageSendEvent.SendOpenChannelUsed to indicate that we've initiated a channel open and should send the open_channel message provided to the given peer.static classMessageSendEvent.SendReplyChannelRangeSends a reply to a channel range query.static classMessageSendEvent.SendRevokeAndACKUsed to indicate that a revoke_and_ack message should be sent to the peer with the given node_id.static classMessageSendEvent.SendShortIdsQueryRequest routing gossip messages from a peer for a list of channels identified by their short_channel_ids.static classMessageSendEvent.SendShutdownUsed to indicate that a shutdown message should be sent to the peer with the given node_id.static classMessageSendEvent.UpdateHTLCsUsed to indicate that a series of HTLC update messages, as well as a commitment_signed message should be sent to the peer with the given node_id.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageSendEventbroadcast_channel_announcement(ChannelAnnouncement msg, ChannelUpdate update_msg)Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEventstatic MessageSendEventbroadcast_channel_update(ChannelUpdate msg)Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEventstatic MessageSendEventbroadcast_node_announcement(NodeAnnouncement msg)Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEventMessageSendEventclone()Creates a copy of the MessageSendEventprotected voidfinalize()static MessageSendEventhandle_error(byte[] node_id, ErrorAction action)Utility method to constructs a new HandleError-variant MessageSendEventstatic MessageSendEventsend_accept_channel(byte[] node_id, AcceptChannel msg)Utility method to constructs a new SendAcceptChannel-variant MessageSendEventstatic MessageSendEventsend_announcement_signatures(byte[] node_id, AnnouncementSignatures msg)Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEventstatic MessageSendEventsend_channel_range_query(byte[] node_id, QueryChannelRange msg)Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEventstatic MessageSendEventsend_channel_ready(byte[] node_id, ChannelReady msg)Utility method to constructs a new SendChannelReady-variant MessageSendEventstatic MessageSendEventsend_channel_reestablish(byte[] node_id, ChannelReestablish msg)Utility method to constructs a new SendChannelReestablish-variant MessageSendEventstatic MessageSendEventsend_channel_update(byte[] node_id, ChannelUpdate msg)Utility method to constructs a new SendChannelUpdate-variant MessageSendEventstatic MessageSendEventsend_closing_signed(byte[] node_id, ClosingSigned msg)Utility method to constructs a new SendClosingSigned-variant MessageSendEventstatic MessageSendEventsend_funding_created(byte[] node_id, FundingCreated msg)Utility method to constructs a new SendFundingCreated-variant MessageSendEventstatic MessageSendEventsend_funding_signed(byte[] node_id, FundingSigned msg)Utility method to constructs a new SendFundingSigned-variant MessageSendEventstatic MessageSendEventsend_gossip_timestamp_filter(byte[] node_id, GossipTimestampFilter msg)Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEventstatic MessageSendEventsend_open_channel(byte[] node_id, OpenChannel msg)Utility method to constructs a new SendOpenChannel-variant MessageSendEventstatic MessageSendEventsend_reply_channel_range(byte[] node_id, ReplyChannelRange msg)Utility method to constructs a new SendReplyChannelRange-variant MessageSendEventstatic MessageSendEventsend_revoke_and_ack(byte[] node_id, RevokeAndACK msg)Utility method to constructs a new SendRevokeAndACK-variant MessageSendEventstatic MessageSendEventsend_short_ids_query(byte[] node_id, QueryShortChannelIds msg)Utility method to constructs a new SendShortIdsQuery-variant MessageSendEventstatic MessageSendEventsend_shutdown(byte[] node_id, Shutdown msg)Utility method to constructs a new SendShutdown-variant MessageSendEventstatic MessageSendEventupdate_htlcs(byte[] node_id, CommitmentUpdate updates)Utility method to constructs a new UpdateHTLCs-variant MessageSendEvent
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public MessageSendEvent clone()
Creates a copy of the MessageSendEvent
-
send_accept_channel
public static MessageSendEvent send_accept_channel(byte[] node_id, AcceptChannel msg)
Utility method to constructs a new SendAcceptChannel-variant MessageSendEvent
-
send_open_channel
public static MessageSendEvent send_open_channel(byte[] node_id, OpenChannel msg)
Utility method to constructs a new SendOpenChannel-variant MessageSendEvent
-
send_funding_created
public static MessageSendEvent send_funding_created(byte[] node_id, FundingCreated msg)
Utility method to constructs a new SendFundingCreated-variant MessageSendEvent
-
send_funding_signed
public static MessageSendEvent send_funding_signed(byte[] node_id, FundingSigned msg)
Utility method to constructs a new SendFundingSigned-variant MessageSendEvent
-
send_channel_ready
public static MessageSendEvent send_channel_ready(byte[] node_id, ChannelReady msg)
Utility method to constructs a new SendChannelReady-variant MessageSendEvent
-
send_announcement_signatures
public static MessageSendEvent send_announcement_signatures(byte[] node_id, AnnouncementSignatures msg)
Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEvent
-
update_htlcs
public static MessageSendEvent update_htlcs(byte[] node_id, CommitmentUpdate updates)
Utility method to constructs a new UpdateHTLCs-variant MessageSendEvent
-
send_revoke_and_ack
public static MessageSendEvent send_revoke_and_ack(byte[] node_id, RevokeAndACK msg)
Utility method to constructs a new SendRevokeAndACK-variant MessageSendEvent
-
send_closing_signed
public static MessageSendEvent send_closing_signed(byte[] node_id, ClosingSigned msg)
Utility method to constructs a new SendClosingSigned-variant MessageSendEvent
-
send_shutdown
public static MessageSendEvent send_shutdown(byte[] node_id, Shutdown msg)
Utility method to constructs a new SendShutdown-variant MessageSendEvent
-
send_channel_reestablish
public static MessageSendEvent send_channel_reestablish(byte[] node_id, ChannelReestablish msg)
Utility method to constructs a new SendChannelReestablish-variant MessageSendEvent
-
broadcast_channel_announcement
public static MessageSendEvent broadcast_channel_announcement(ChannelAnnouncement msg, ChannelUpdate update_msg)
Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEvent
-
broadcast_node_announcement
public static MessageSendEvent broadcast_node_announcement(NodeAnnouncement msg)
Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEvent
-
broadcast_channel_update
public static MessageSendEvent broadcast_channel_update(ChannelUpdate msg)
Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEvent
-
send_channel_update
public static MessageSendEvent send_channel_update(byte[] node_id, ChannelUpdate msg)
Utility method to constructs a new SendChannelUpdate-variant MessageSendEvent
-
handle_error
public static MessageSendEvent handle_error(byte[] node_id, ErrorAction action)
Utility method to constructs a new HandleError-variant MessageSendEvent
-
send_channel_range_query
public static MessageSendEvent send_channel_range_query(byte[] node_id, QueryChannelRange msg)
Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEvent
-
send_short_ids_query
public static MessageSendEvent send_short_ids_query(byte[] node_id, QueryShortChannelIds msg)
Utility method to constructs a new SendShortIdsQuery-variant MessageSendEvent
-
send_reply_channel_range
public static MessageSendEvent send_reply_channel_range(byte[] node_id, ReplyChannelRange msg)
Utility method to constructs a new SendReplyChannelRange-variant MessageSendEvent
-
send_gossip_timestamp_filter
public static MessageSendEvent send_gossip_timestamp_filter(byte[] node_id, GossipTimestampFilter msg)
Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEvent
-
-