Package org.ldk.structs
Class PathFailure
- java.lang.Object
-
- org.ldk.structs.PathFailure
-
- Direct Known Subclasses:
PathFailure.InitialSend,PathFailure.OnPath
public class PathFailure extends Object
When the payment path failure took place and extra details about it. [`PathFailure::OnPath`] may contain a [`NetworkUpdate`] that needs to be applied to the [`NetworkGraph`]. [`NetworkUpdate`]: crate::routing::gossip::NetworkUpdate [`NetworkGraph`]: crate::routing::gossip::NetworkGraph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathFailure.InitialSendWe failed to initially send the payment and no HTLC was committed to.static classPathFailure.OnPathA hop on the path failed to forward our payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PathFailureclone()Creates a copy of the PathFailurebooleaneq(PathFailure b)Checks if two PathFailures contain equal inner contents.booleanequals(Object o)protected voidfinalize()static PathFailureinitial_send(APIError err)Utility method to constructs a new InitialSend-variant PathFailurestatic PathFailureon_path(Option_NetworkUpdateZ network_update)Utility method to constructs a new OnPath-variant PathFailurebyte[]write()Serialize the PathFailure object into a byte array which can be read by PathFailure_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public PathFailure clone()
Creates a copy of the PathFailure
-
initial_send
public static PathFailure initial_send(APIError err)
Utility method to constructs a new InitialSend-variant PathFailure
-
on_path
public static PathFailure on_path(Option_NetworkUpdateZ network_update)
Utility method to constructs a new OnPath-variant PathFailure
-
eq
public boolean eq(PathFailure b)
Checks if two PathFailures contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
write
public byte[] write()
Serialize the PathFailure object into a byte array which can be read by PathFailure_read
-
-