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 class
ClosureReason.CommitmentTxConfirmed
static class
ClosureReason.CooperativeClosure
static class
ClosureReason.CounterpartyForceClosed
static class
ClosureReason.DisconnectedPeer
static class
ClosureReason.HolderForceClosed
static class
ClosureReason.OutdatedChannelManager
static class
ClosureReason.ProcessingError
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClosureReason
clone()
Creates a copy of the ClosureReasonstatic ClosureReason
commitment_tx_confirmed()
Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReasonstatic ClosureReason
cooperative_closure()
Utility method to constructs a new CooperativeClosure-variant ClosureReasonstatic ClosureReason
counterparty_force_closed(String peer_msg)
Utility method to constructs a new CounterpartyForceClosed-variant ClosureReasonstatic ClosureReason
disconnected_peer()
Utility method to constructs a new DisconnectedPeer-variant ClosureReasonprotected void
finalize()
static ClosureReason
holder_force_closed()
Utility method to constructs a new HolderForceClosed-variant ClosureReasonstatic ClosureReason
outdated_channel_manager()
Utility method to constructs a new OutdatedChannelManager-variant ClosureReasonstatic ClosureReason
processing_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
-
-