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 for an [`Invoice`].
-
-
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(long 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()Checks if two Retrys contain equal inner contents.inthashCode()static Retrytimeout(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()
Checks if two Retrys contain equal inner contents.
-
-