Package org.ldk.structs
Class MonitorEvent
- java.lang.Object
-
- org.ldk.structs.MonitorEvent
-
- Direct Known Subclasses:
MonitorEvent.CommitmentTxConfirmed,MonitorEvent.HTLCEvent,MonitorEvent.UpdateCompleted,MonitorEvent.UpdateFailed
public class MonitorEvent extends Object
An event to be processed by the ChannelManager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitorEvent.CommitmentTxConfirmedA monitor event that the Channel's commitment transaction was confirmed.static classMonitorEvent.HTLCEventA monitor event containing an HTLCUpdate.static classMonitorEvent.UpdateCompletedIndicates a [`ChannelMonitor`] update has completed.static classMonitorEvent.UpdateFailedIndicates a [`ChannelMonitor`] update has failed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitorEventclone()Creates a copy of the MonitorEventstatic MonitorEventcommitment_tx_confirmed(OutPoint a)Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEventprotected voidfinalize()static MonitorEventhtlcevent(HTLCUpdate a)Utility method to constructs a new HTLCEvent-variant MonitorEventstatic MonitorEventupdate_completed(OutPoint funding_txo, long monitor_update_id)Utility method to constructs a new UpdateCompleted-variant MonitorEventstatic MonitorEventupdate_failed(OutPoint a)Utility method to constructs a new UpdateFailed-variant MonitorEventbyte[]write()Serialize the MonitorEvent object into a byte array which can be read by MonitorEvent_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public MonitorEvent clone()
Creates a copy of the MonitorEvent
-
htlcevent
public static MonitorEvent htlcevent(HTLCUpdate a)
Utility method to constructs a new HTLCEvent-variant MonitorEvent
-
commitment_tx_confirmed
public static MonitorEvent commitment_tx_confirmed(OutPoint a)
Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEvent
-
update_completed
public static MonitorEvent update_completed(OutPoint funding_txo, long monitor_update_id)
Utility method to constructs a new UpdateCompleted-variant MonitorEvent
-
update_failed
public static MonitorEvent update_failed(OutPoint a)
Utility method to constructs a new UpdateFailed-variant MonitorEvent
-
write
public byte[] write()
Serialize the MonitorEvent object into a byte array which can be read by MonitorEvent_read
-
-