Package net.finmath.pontes.erc7573
Class InMemoryPontesPaymentClaimStore
java.lang.Object
net.finmath.pontes.erc7573.InMemoryPontesPaymentClaimStore
- All Implemented Interfaces:
AutoCloseable,PontesPaymentClaimStore
public final class InMemoryPontesPaymentClaimStore
extends Object
implements PontesPaymentClaimStore
Thread-safe claim store for tests; production uses
FilePontesPaymentClaimStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIfAbsent(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
close, save
-
Constructor Details
-
InMemoryPontesPaymentClaimStore
public InMemoryPontesPaymentClaimStore()
-
-
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
-
saveIfVersion
- Specified by:
saveIfVersionin interfacePontesPaymentClaimStore- Throws:
IOException
-