Package org.ldk.structs
Class ClosureReason
- java.lang.Object
-
- org.ldk.structs.ClosureReason
-
- Direct Known Subclasses:
ClosureReason.CommitmentTxConfirmed,ClosureReason.CooperativeClosure,ClosureReason.CounterpartyForceClosed,ClosureReason.DisconnectedPeer,ClosureReason.HolderForceClosed,ClosureReason.OutdatedChannelManager,ClosureReason.ProcessingError
public class ClosureReason extends Object
The reason the channel was closed. See individual variants more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClosureReason.CommitmentTxConfirmedstatic classClosureReason.CooperativeClosurestatic classClosureReason.CounterpartyForceClosedstatic classClosureReason.DisconnectedPeerstatic classClosureReason.HolderForceClosedstatic classClosureReason.OutdatedChannelManagerstatic classClosureReason.ProcessingError
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClosureReasonclone()Creates a copy of the ClosureReasonstatic ClosureReasoncommitment_tx_confirmed()Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReasonstatic ClosureReasoncooperative_closure()Utility method to constructs a new CooperativeClosure-variant ClosureReasonstatic ClosureReasoncounterparty_force_closed(String peer_msg)Utility method to constructs a new CounterpartyForceClosed-variant ClosureReasonstatic ClosureReasondisconnected_peer()Utility method to constructs a new DisconnectedPeer-variant ClosureReasonprotected voidfinalize()static ClosureReasonholder_force_closed()Utility method to constructs a new HolderForceClosed-variant ClosureReasonstatic ClosureReasonoutdated_channel_manager()Utility method to constructs a new OutdatedChannelManager-variant ClosureReasonstatic ClosureReasonprocessing_error(String err)Utility method to constructs a new ProcessingError-variant ClosureReasonbyte[]write()Serialize the ClosureReason object into a byte array which can be read by ClosureReason_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public ClosureReason clone()
Creates a copy of the ClosureReason
-
counterparty_force_closed
public static ClosureReason counterparty_force_closed(String peer_msg)
Utility method to constructs a new CounterpartyForceClosed-variant ClosureReason
-
holder_force_closed
public static ClosureReason holder_force_closed()
Utility method to constructs a new HolderForceClosed-variant ClosureReason
-
cooperative_closure
public static ClosureReason cooperative_closure()
Utility method to constructs a new CooperativeClosure-variant ClosureReason
-
commitment_tx_confirmed
public static ClosureReason commitment_tx_confirmed()
Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReason
-
processing_error
public static ClosureReason processing_error(String err)
Utility method to constructs a new ProcessingError-variant ClosureReason
-
disconnected_peer
public static ClosureReason disconnected_peer()
Utility method to constructs a new DisconnectedPeer-variant ClosureReason
-
outdated_channel_manager
public static ClosureReason outdated_channel_manager()
Utility method to constructs a new OutdatedChannelManager-variant ClosureReason
-
write
public byte[] write()
Serialize the ClosureReason object into a byte array which can be read by ClosureReason_read
-
-