Package net.finmath.pontes.erc7573
Class FilePontesPaymentClaimStore
java.lang.Object
net.finmath.pontes.erc7573.FilePontesPaymentClaimStore
- All Implemented Interfaces:
AutoCloseable,PontesPaymentClaimStore
Fsync-backed payment-claim store with exclusive process ownership.
The state transition to PontesPaymentClaimState.POST_DISPATCHING is atomically
persisted before a payment can be submitted. A restart therefore has a durable reason to use
GET-only reconciliation even when the individual bridge job that caused the attempt differs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createIfAbsent(PontesPaymentClaim claim) Atomically creates the claim, or returns the already existing claim.voidsaveIfVersion(PontesPaymentClaim claim, long expectedVersion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.finmath.pontes.erc7573.PontesPaymentClaimStore
save
-
Constructor Details
-
FilePontesPaymentClaimStore
- Throws:
IOException
-
-
Method Details
-
find
- Specified by:
findin interfacePontesPaymentClaimStore
-
createIfAbsent
Description copied from interface:PontesPaymentClaimStoreAtomically creates the claim, or returns the already existing claim.- Specified by:
createIfAbsentin interfacePontesPaymentClaimStore- Throws:
IOException
-
saveIfVersion
- Specified by:
saveIfVersionin interfacePontesPaymentClaimStore- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePontesPaymentClaimStore- Throws:
IOException
-