Package org.ldk.structs
Class ChannelReestablish
- java.lang.Object
-
- org.ldk.structs.ChannelReestablish
-
public class ChannelReestablish extends Object
A channel_reestablish message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelReestablish
clone()
Creates a copy of the ChannelReestablishprotected void
finalize()
byte[]
get_channel_id()
The channel IDlong
get_next_local_commitment_number()
The next commitment number for the senderlong
get_next_remote_commitment_number()
The next commitment number for the recipientstatic Result_ChannelReestablishDecodeErrorZ
read(byte[] ser)
Read a ChannelReestablish from a byte array, created by ChannelReestablish_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_next_local_commitment_number(long val)
The next commitment number for the sendervoid
set_next_remote_commitment_number(long val)
The next commitment number for the recipientbyte[]
write()
Serialize the ChannelReestablish object into a byte array which can be read by ChannelReestablish_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_next_local_commitment_number
public long get_next_local_commitment_number()
The next commitment number for the sender
-
set_next_local_commitment_number
public void set_next_local_commitment_number(long val)
The next commitment number for the sender
-
get_next_remote_commitment_number
public long get_next_remote_commitment_number()
The next commitment number for the recipient
-
set_next_remote_commitment_number
public void set_next_remote_commitment_number(long val)
The next commitment number for the recipient
-
clone
public ChannelReestablish clone()
Creates a copy of the ChannelReestablish
-
write
public byte[] write()
Serialize the ChannelReestablish object into a byte array which can be read by ChannelReestablish_read
-
read
public static Result_ChannelReestablishDecodeErrorZ read(byte[] ser)
Read a ChannelReestablish from a byte array, created by ChannelReestablish_write
-
-