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 class
Retry.Attempts
Max number of attempts to retry payment.static class
Retry.Timeout
Time elapsed before abandoning retries for a payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Retry
attempts(long a)
Utility method to constructs a new Attempts-variant RetryRetry
clone()
Creates a copy of the Retryboolean
eq(Retry b)
Checks if two Retrys contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
long
hash()
Generates a non-cryptographic 64-bit hash of the Retry.int
hashCode()
static Retry
timeout(long a)
Utility method to constructs a new Timeout-variant Retry
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
attempts
public static Retry attempts(long 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.
-
-