Package org.ldk.structs
Class MonitorEvent
- java.lang.Object
-
- org.ldk.structs.MonitorEvent
-
- Direct Known Subclasses:
MonitorEvent.CommitmentTxConfirmed
,MonitorEvent.Completed
,MonitorEvent.HTLCEvent
,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 class
MonitorEvent.CommitmentTxConfirmed
A monitor event that the Channel's commitment transaction was confirmed.static class
MonitorEvent.Completed
Indicates a [`ChannelMonitor`] update has completed.static class
MonitorEvent.HTLCEvent
A monitor event containing an HTLCUpdate.static class
MonitorEvent.UpdateFailed
Indicates a [`ChannelMonitor`] update has failed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitorEvent
clone()
Creates a copy of the MonitorEventstatic MonitorEvent
commitment_tx_confirmed(OutPoint a)
Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEventstatic MonitorEvent
completed(OutPoint funding_txo, long monitor_update_id)
Utility method to constructs a new Completed-variant MonitorEventboolean
eq(MonitorEvent b)
Checks if two MonitorEvents contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
static MonitorEvent
htlcevent(HTLCUpdate a)
Utility method to constructs a new HTLCEvent-variant MonitorEventstatic MonitorEvent
update_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
-
completed
public static MonitorEvent completed(OutPoint funding_txo, long monitor_update_id)
Utility method to constructs a new Completed-variant MonitorEvent
-
update_failed
public static MonitorEvent update_failed(OutPoint a)
Utility method to constructs a new UpdateFailed-variant MonitorEvent
-
eq
public boolean eq(MonitorEvent b)
Checks if two MonitorEvents contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
write
public byte[] write()
Serialize the MonitorEvent object into a byte array which can be read by MonitorEvent_read
-
-