Package org.ldk.structs
Class Retry
- java.lang.Object
-
- org.ldk.structs.Retry
-
- Direct Known Subclasses:
Retry.Attempts,Retry.Timeout
public class Retry extends Object
Strategies available to retry payment path failures.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetry.AttemptsMax number of attempts to retry payment.static classRetry.TimeoutTime elapsed before abandoning retries for a payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Retryattempts(int a)Utility method to constructs a new Attempts-variant RetryRetryclone()Creates a copy of the Retrybooleaneq(Retry b)Checks if two Retrys contain equal inner contents.booleanequals(Object o)protected voidfinalize()longhash()Generates a non-cryptographic 64-bit hash of the Retry.inthashCode()static Result_RetryDecodeErrorZread(byte[] ser)Read a Retry from a byte array, created by Retry_writestatic Retrytimeout(long a)Utility method to constructs a new Timeout-variant Retrybyte[]write()Serialize the Retry object into a byte array which can be read by Retry_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
attempts
public static Retry attempts(int a)
Utility method to constructs a new Attempts-variant Retry
-
timeout
public static Retry timeout(long a)
Utility method to constructs a new Timeout-variant Retry
-
eq
public boolean eq(Retry b)
Checks if two Retrys contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the Retry.
-
write
public byte[] write()
Serialize the Retry object into a byte array which can be read by Retry_read
-
read
public static Result_RetryDecodeErrorZ read(byte[] ser)
Read a Retry from a byte array, created by Retry_write
-
-