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.SendChannelAnnouncement
,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 class
MessageSendEvent.BroadcastChannelAnnouncement
Used 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 class
MessageSendEvent.BroadcastChannelUpdate
Used to indicate that a channel_update should be broadcast to all peers.static class
MessageSendEvent.BroadcastNodeAnnouncement
Used to indicate that a node_announcement should be broadcast to all peers.static class
MessageSendEvent.HandleError
Broadcast an error downstream to be handledstatic class
MessageSendEvent.SendAcceptChannel
Used to indicate that we've accepted a channel open and should send the accept_channel message provided to the given peer.static class
MessageSendEvent.SendAnnouncementSignatures
Used to indicate that an announcement_signatures message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendChannelAnnouncement
Used to send a channel_announcement and channel_update to a specific peer, likely on initial connection to ensure our peers know about our channels.static class
MessageSendEvent.SendChannelRangeQuery
Query a peer for channels with funding transaction UTXOs in a block range.static class
MessageSendEvent.SendChannelReady
Used to indicate that a channel_ready message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendChannelReestablish
Used to indicate that a channel_reestablish message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendChannelUpdate
Used to indicate that a channel_update should be sent to a single peer.static class
MessageSendEvent.SendClosingSigned
Used to indicate that a closing_signed message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendFundingCreated
Used to indicate that a funding_created message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendFundingSigned
Used to indicate that a funding_signed message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendGossipTimestampFilter
Sends a timestamp filter for inbound gossip.static class
MessageSendEvent.SendOpenChannel
Used to indicate that we've initiated a channel open and should send the open_channel message provided to the given peer.static class
MessageSendEvent.SendReplyChannelRange
Sends a reply to a channel range query.static class
MessageSendEvent.SendRevokeAndACK
Used to indicate that a revoke_and_ack message should be sent to the peer with the given node_id.static class
MessageSendEvent.SendShortIdsQuery
Request routing gossip messages from a peer for a list of channels identified by their short_channel_ids.static class
MessageSendEvent.SendShutdown
Used to indicate that a shutdown message should be sent to the peer with the given node_id.static class
MessageSendEvent.UpdateHTLCs
Used 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 MessageSendEvent
broadcast_channel_announcement(ChannelAnnouncement msg, ChannelUpdate update_msg)
Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEventstatic MessageSendEvent
broadcast_channel_update(ChannelUpdate msg)
Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEventstatic MessageSendEvent
broadcast_node_announcement(NodeAnnouncement msg)
Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEventMessageSendEvent
clone()
Creates a copy of the MessageSendEventprotected void
finalize()
static MessageSendEvent
handle_error(byte[] node_id, ErrorAction action)
Utility method to constructs a new HandleError-variant MessageSendEventstatic MessageSendEvent
send_accept_channel(byte[] node_id, AcceptChannel msg)
Utility method to constructs a new SendAcceptChannel-variant MessageSendEventstatic MessageSendEvent
send_announcement_signatures(byte[] node_id, AnnouncementSignatures msg)
Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEventstatic MessageSendEvent
send_channel_announcement(byte[] node_id, ChannelAnnouncement msg, ChannelUpdate update_msg)
Utility method to constructs a new SendChannelAnnouncement-variant MessageSendEventstatic MessageSendEvent
send_channel_range_query(byte[] node_id, QueryChannelRange msg)
Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEventstatic MessageSendEvent
send_channel_ready(byte[] node_id, ChannelReady msg)
Utility method to constructs a new SendChannelReady-variant MessageSendEventstatic MessageSendEvent
send_channel_reestablish(byte[] node_id, ChannelReestablish msg)
Utility method to constructs a new SendChannelReestablish-variant MessageSendEventstatic MessageSendEvent
send_channel_update(byte[] node_id, ChannelUpdate msg)
Utility method to constructs a new SendChannelUpdate-variant MessageSendEventstatic MessageSendEvent
send_closing_signed(byte[] node_id, ClosingSigned msg)
Utility method to constructs a new SendClosingSigned-variant MessageSendEventstatic MessageSendEvent
send_funding_created(byte[] node_id, FundingCreated msg)
Utility method to constructs a new SendFundingCreated-variant MessageSendEventstatic MessageSendEvent
send_funding_signed(byte[] node_id, FundingSigned msg)
Utility method to constructs a new SendFundingSigned-variant MessageSendEventstatic MessageSendEvent
send_gossip_timestamp_filter(byte[] node_id, GossipTimestampFilter msg)
Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEventstatic MessageSendEvent
send_open_channel(byte[] node_id, OpenChannel msg)
Utility method to constructs a new SendOpenChannel-variant MessageSendEventstatic MessageSendEvent
send_reply_channel_range(byte[] node_id, ReplyChannelRange msg)
Utility method to constructs a new SendReplyChannelRange-variant MessageSendEventstatic MessageSendEvent
send_revoke_and_ack(byte[] node_id, RevokeAndACK msg)
Utility method to constructs a new SendRevokeAndACK-variant MessageSendEventstatic MessageSendEvent
send_short_ids_query(byte[] node_id, QueryShortChannelIds msg)
Utility method to constructs a new SendShortIdsQuery-variant MessageSendEventstatic MessageSendEvent
send_shutdown(byte[] node_id, Shutdown msg)
Utility method to constructs a new SendShutdown-variant MessageSendEventstatic MessageSendEvent
update_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
-
send_channel_announcement
public static MessageSendEvent send_channel_announcement(byte[] node_id, ChannelAnnouncement msg, ChannelUpdate update_msg)
Utility method to constructs a new SendChannelAnnouncement-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_channel_update
public static MessageSendEvent broadcast_channel_update(ChannelUpdate msg)
Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEvent
-
broadcast_node_announcement
public static MessageSendEvent broadcast_node_announcement(NodeAnnouncement msg)
Utility method to constructs a new BroadcastNodeAnnouncement-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
-
-