Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- active(MarketListingRequest) - Static method in record class com.cotani.market.api.MarketListing
- ACTIVE - Enum constant in enum class com.cotani.market.api.MarketListingStatus
- amount() - Method in record class com.cotani.market.api.MarketItem
-
Returns the value of the
amountrecord component. - amount() - Method in record class com.cotani.market.api.MarketPrice
-
Returns the value of the
amountrecord component.
B
- browseAsync(MarketQuery) - Method in interface com.cotani.market.api.MarketService
-
Browses active listings with bounded pagination.
- browseAsync(MarketQuery, Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Lists active, non-expired listings at the supplied instant.
- browseAsync(MarketQuery, Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
- build() - Method in class com.cotani.market.api.MarketQuery.Builder
- builder() - Static method in record class com.cotani.market.api.MarketQuery
- Builder() - Constructor for class com.cotani.market.api.MarketQuery.Builder
- buyerId() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
buyerIdrecord component. - buyerId() - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Returns the value of the
buyerIdrecord component.
C
- cancelAsync(UUID, MarketListingId) - Method in interface com.cotani.market.api.MarketService
-
Cancels an active listing owned by the seller.
- cancelAsync(UUID, MarketListingId, Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Cancels a seller-owned active listing atomically.
- cancelAsync(UUID, MarketListingId, Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
- cancelled() - Method in record class com.cotani.market.api.MarketPurchase
- CANCELLED - Enum constant in enum class com.cotani.market.api.MarketListingStatus
- CANCELLED - Enum constant in enum class com.cotani.market.api.MarketPurchaseStatus
- close() - Method in interface com.cotani.market.api.MarketService
- closeAsync() - Method in interface com.cotani.market.api.MarketService
-
Rejects new operations and waits asynchronously for accepted operations to finish.
- com.cotani.market - package com.cotani.market
- com.cotani.market.api - package com.cotani.market.api
- com.cotani.market.api.event - package com.cotani.market.api.event
- com.cotani.market.storage - package com.cotani.market.storage
- CotaniMarkets - Class in com.cotani.market
-
Factories for the
cotani-marketmodule. - create(MarketListingId, UUID) - Static method in record class com.cotani.market.api.MarketPurchaseRequest
- create(UUID, MarketItem, MarketPrice, Duration, Instant) - Static method in record class com.cotani.market.api.MarketListingRequest
- createAsync(MarketListing) - Method in interface com.cotani.market.api.MarketRepository
-
Creates a listing; reusing an id with different content must fail.
- createAsync(MarketListing) - Method in class com.cotani.market.storage.StorageMarketRepository
- created() - Method in record class com.cotani.market.api.MarketPurchaseReservation
-
Returns the value of the
createdrecord component. - createdAt() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
createdAtrecord component. - CreateMarketIndexesMigration - Class in com.cotani.market.storage
-
Adds indexes for active browsing, expiry and pending purchase recovery.
- CreateMarketIndexesMigration() - Constructor for class com.cotani.market.storage.CreateMarketIndexesMigration
- CreateMarketTablesMigration - Class in com.cotani.market.storage
-
Creates listings and purchase receipts used by the SQL marketplace repository.
- CreateMarketTablesMigration() - Constructor for class com.cotani.market.storage.CreateMarketTablesMigration
- currency() - Method in record class com.cotani.market.api.MarketPrice
-
Returns the value of the
currencyrecord component. - currency() - Method in record class com.cotani.market.api.MarketQuery
-
Returns the value of the
currencyrecord component. - currency(CurrencyId) - Method in class com.cotani.market.api.MarketQuery.Builder
D
- defaults() - Static method in record class com.cotani.market.api.MarketServiceOptions
- description() - Method in class com.cotani.market.storage.CreateMarketIndexesMigration
- description() - Method in class com.cotani.market.storage.CreateMarketTablesMigration
E
- equals(Object) - Method in record class com.cotani.market.api.event.ListingCancelledEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.event.ListingCreatedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.event.PurchaseReleasedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.event.PurchaseReservedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.event.PurchaseSettledEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketItem
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketListing
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketListingId
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketListingRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPrice
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPurchase
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPurchaseId
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketPurchaseReservation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketQuery
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.market.api.MarketServiceOptions
-
Indicates whether some other object is "equal to" this one.
- EXPIRED - Enum constant in enum class com.cotani.market.api.MarketListingStatus
- expiresAt() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
expiresAtrecord component. - expiresAt() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
expiresAtrecord component.
F
- FAILED - Enum constant in enum class com.cotani.market.api.MarketSettlementStatus
- findAsync(MarketListingId) - Method in interface com.cotani.market.api.MarketRepository
-
Finds a listing by id, including terminal listings retained for history.
- findAsync(MarketListingId) - Method in interface com.cotani.market.api.MarketService
-
Finds a listing including terminal history.
- findAsync(MarketListingId) - Method in class com.cotani.market.storage.StorageMarketRepository
- findPurchaseAsync(MarketPurchaseId) - Method in interface com.cotani.market.api.MarketRepository
-
Finds a purchase receipt for recovery and observability.
- findPurchaseAsync(MarketPurchaseId) - Method in interface com.cotani.market.api.MarketService
-
Finds a purchase receipt for recovery.
- findPurchaseAsync(MarketPurchaseId) - Method in class com.cotani.market.storage.StorageMarketRepository
- firstPage(int) - Static method in record class com.cotani.market.api.MarketQuery
- fromRepository(MarketRepository, MarketSettlementService) - Static method in class com.cotani.market.CotaniMarkets
-
Creates a service over a caller-owned repository and settlement adapter.
- fromRepository(MarketRepository, MarketSettlementService, EventBus, MarketServiceOptions) - Static method in class com.cotani.market.CotaniMarkets
-
Creates a service with optional event publication and explicit operational limits.
H
- hashCode() - Method in record class com.cotani.market.api.event.ListingCancelledEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.event.ListingCreatedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.event.PurchaseReleasedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.event.PurchaseReservedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.event.PurchaseSettledEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketItem
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketListing
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketListingId
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPage
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPrice
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPurchaseId
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketPurchaseReservation
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketQuery
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns a hash code value for this object.
- hasMore() - Method in record class com.cotani.market.api.MarketPage
-
Returns the value of the
hasMorerecord component.
I
- id() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
idrecord component. - id() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
idrecord component. - id() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
idrecord component. - IN_PROGRESS - Enum constant in enum class com.cotani.market.api.MarketSettlementStatus
- inMemory(MarketSettlementService) - Static method in class com.cotani.market.CotaniMarkets
-
Creates an ephemeral in-memory marketplace, suitable for tests.
- isActiveAt(Instant) - Method in record class com.cotani.market.api.MarketListing
- item() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
itemrecord component. - item() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
itemrecord component. - item() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
itemrecord component. - itemKey() - Method in record class com.cotani.market.api.MarketQuery
-
Returns the value of the
itemKeyrecord component. - itemKey(String) - Method in class com.cotani.market.api.MarketQuery.Builder
K
- key() - Method in record class com.cotani.market.api.MarketItem
-
Returns the value of the
keyrecord component.
L
- listAsync(MarketListingRequest) - Method in interface com.cotani.market.api.MarketService
-
Creates a listing using the request's stable id and timestamp.
- listAsync(UUID, MarketItem, MarketPrice, Duration) - Method in interface com.cotani.market.api.MarketService
-
Creates a fresh listing request using the service clock.
- listing() - Method in record class com.cotani.market.api.event.ListingCancelledEvent
-
Returns the value of the
listingrecord component. - listing() - Method in record class com.cotani.market.api.event.ListingCreatedEvent
-
Returns the value of the
listingrecord component. - ListingCancelledEvent - Record Class in com.cotani.market.api.event
-
Published after a listing is durably cancelled.
- ListingCancelledEvent(MarketListing) - Constructor for record class com.cotani.market.api.event.ListingCancelledEvent
-
Creates an instance of a
ListingCancelledEventrecord class. - ListingCreatedEvent - Record Class in com.cotani.market.api.event
-
Published after a listing is durably created.
- ListingCreatedEvent(MarketListing) - Constructor for record class com.cotani.market.api.event.ListingCreatedEvent
-
Creates an instance of a
ListingCreatedEventrecord class. - listingId() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
listingIdrecord component. - listingId() - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Returns the value of the
listingIdrecord component. - listings() - Method in record class com.cotani.market.api.MarketPage
-
Returns the value of the
listingsrecord component.
M
- MarketConflictException - Exception Class in com.cotani.market.api
-
Raised when an idempotency key is reused with different data.
- MarketConflictException(Object) - Constructor for exception class com.cotani.market.api.MarketConflictException
- MarketEvent - Interface in com.cotani.market.api.event
-
Marker for immutable marketplace events.
- MarketException - Exception Class in com.cotani.market.api
-
Base exception for expected marketplace domain failures.
- MarketException(String) - Constructor for exception class com.cotani.market.api.MarketException
- MarketException(String, Throwable) - Constructor for exception class com.cotani.market.api.MarketException
- MarketItem - Record Class in com.cotani.market.api
-
Immutable serialized item snapshot; it never contains a live Bukkit ItemStack.
- MarketItem(String, int, String) - Constructor for record class com.cotani.market.api.MarketItem
-
Creates an instance of a
MarketItemrecord class. - MarketListing - Record Class in com.cotani.market.api
-
Immutable listing snapshot returned by the marketplace.
- MarketListing(MarketListingId, UUID, MarketItem, MarketPrice, Instant, Instant, MarketListingStatus) - Constructor for record class com.cotani.market.api.MarketListing
-
Creates an instance of a
MarketListingrecord class. - MarketListingId - Record Class in com.cotani.market.api
-
Stable identifier for one marketplace listing.
- MarketListingId(UUID) - Constructor for record class com.cotani.market.api.MarketListingId
-
Creates an instance of a
MarketListingIdrecord class. - MarketListingRequest - Record Class in com.cotani.market.api
-
Caller-owned immutable listing intent with a stable idempotency key.
- MarketListingRequest(MarketListingId, UUID, MarketItem, MarketPrice, Instant, Instant) - Constructor for record class com.cotani.market.api.MarketListingRequest
-
Creates an instance of a
MarketListingRequestrecord class. - MarketListingStateException - Exception Class in com.cotani.market.api
-
Raised when a listing cannot perform the requested lifecycle transition.
- MarketListingStateException(MarketListingId, MarketListingStatus) - Constructor for exception class com.cotani.market.api.MarketListingStateException
- MarketListingStatus - Enum Class in com.cotani.market.api
-
Lifecycle state of a marketplace listing.
- MarketNotFoundException - Exception Class in com.cotani.market.api
-
Raised when a listing or purchase cannot be found.
- MarketNotFoundException(String, Object) - Constructor for exception class com.cotani.market.api.MarketNotFoundException
- MarketPage - Record Class in com.cotani.market.api
-
Immutable bounded marketplace page.
- MarketPage(List, boolean) - Constructor for record class com.cotani.market.api.MarketPage
-
Creates an instance of a
MarketPagerecord class. - MarketPrice - Record Class in com.cotani.market.api
-
Immutable positive price expressed in one Cotani economy currency.
- MarketPrice(CurrencyId, BigDecimal) - Constructor for record class com.cotani.market.api.MarketPrice
-
Creates an instance of a
MarketPricerecord class. - MarketPurchase - Record Class in com.cotani.market.api
-
Immutable purchase receipt and settlement payload.
- MarketPurchase(MarketPurchaseId, MarketListingId, UUID, UUID, MarketItem, MarketPrice, Instant, MarketPurchaseStatus, Optional) - Constructor for record class com.cotani.market.api.MarketPurchase
-
Creates an instance of a
MarketPurchaserecord class. - MarketPurchaseId - Record Class in com.cotani.market.api
-
Stable idempotency key for one marketplace purchase attempt.
- MarketPurchaseId(UUID) - Constructor for record class com.cotani.market.api.MarketPurchaseId
-
Creates an instance of a
MarketPurchaseIdrecord class. - MarketPurchasePendingException - Exception Class in com.cotani.market.api
-
Indicates that settlement timed out or failed after durable reservation; retry the same purchase id.
- MarketPurchasePendingException(MarketPurchaseId, Throwable) - Constructor for exception class com.cotani.market.api.MarketPurchasePendingException
- MarketPurchaseRequest - Record Class in com.cotani.market.api
-
Caller-owned purchase intent; retries must reuse the same purchase id.
- MarketPurchaseRequest(MarketPurchaseId, MarketListingId, UUID) - Constructor for record class com.cotani.market.api.MarketPurchaseRequest
-
Creates an instance of a
MarketPurchaseRequestrecord class. - MarketPurchaseReservation - Record Class in com.cotani.market.api
-
Result of an idempotent reservation, including whether a new receipt was created.
- MarketPurchaseReservation(MarketPurchase, boolean) - Constructor for record class com.cotani.market.api.MarketPurchaseReservation
-
Creates an instance of a
MarketPurchaseReservationrecord class. - MarketPurchaseStateException - Exception Class in com.cotani.market.api
-
Indicates that a purchase receipt cannot be used for another settlement attempt.
- MarketPurchaseStateException(MarketPurchaseId, MarketPurchaseStatus) - Constructor for exception class com.cotani.market.api.MarketPurchaseStateException
- MarketPurchaseStatus - Enum Class in com.cotani.market.api
-
Lifecycle state of an idempotent marketplace purchase.
- MarketQuery - Record Class in com.cotani.market.api
-
Bounded query for active listings, ordered newest first.
- MarketQuery(int, int, Optional, Optional, Optional) - Constructor for record class com.cotani.market.api.MarketQuery
-
Creates an instance of a
MarketQueryrecord class. - MarketQuery.Builder - Class in com.cotani.market.api
- MarketRepository - Interface in com.cotani.market.api
-
Bukkit-free persistence SPI for listings and idempotent purchase reservations.
- MarketSelfPurchaseException - Exception Class in com.cotani.market.api
-
Raised when a seller attempts to purchase their own listing.
- MarketSelfPurchaseException(MarketListingId) - Constructor for exception class com.cotani.market.api.MarketSelfPurchaseException
- MarketService - Interface in com.cotani.market.api
-
Asynchronous marketplace use cases with idempotent settlement recovery.
- MarketServiceOptions - Record Class in com.cotani.market.api
-
Operational limits for marketplace queries, persistence and settlement.
- MarketServiceOptions(Duration, Duration, int, int) - Constructor for record class com.cotani.market.api.MarketServiceOptions
- MarketServiceOptions(Duration, Duration, Duration, int, int) - Constructor for record class com.cotani.market.api.MarketServiceOptions
-
Creates an instance of a
MarketServiceOptionsrecord class. - MarketSettlementService - Interface in com.cotani.market.api
-
Host-owned idempotent adapter that charges currency and delivers the item.
- MarketSettlementStatus - Enum Class in com.cotani.market.api
-
Durable state reported by the host settlement adapter for a purchase.
- markSettledAsync(MarketPurchaseId, Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Marks a pending purchase as settled and its listing as sold.
- markSettledAsync(MarketPurchaseId, Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
- MAX_SERIALIZED_DATA_LENGTH - Static variable in record class com.cotani.market.api.MarketItem
- maxPageSize() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns the value of the
maxPageSizerecord component. - maxPendingRecovery() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns the value of the
maxPendingRecoveryrecord component. - migrate(Schema) - Method in class com.cotani.market.storage.CreateMarketIndexesMigration
- migrate(Schema) - Method in class com.cotani.market.storage.CreateMarketTablesMigration
- migrations() - Static method in class com.cotani.market.storage.StorageMarketRepository
N
- NOT_STARTED - Enum constant in enum class com.cotani.market.api.MarketSettlementStatus
P
- page() - Method in record class com.cotani.market.api.MarketQuery
-
Returns the value of the
pagerecord component. - page(int) - Method in class com.cotani.market.api.MarketQuery.Builder
- pageSize() - Method in record class com.cotani.market.api.MarketQuery
-
Returns the value of the
pageSizerecord component. - pageSize(int) - Method in class com.cotani.market.api.MarketQuery.Builder
- pending(MarketPurchaseRequest, MarketListing, Instant) - Static method in record class com.cotani.market.api.MarketPurchase
- PENDING - Enum constant in enum class com.cotani.market.api.MarketPurchaseStatus
- pendingPurchasesAsync(int) - Method in interface com.cotani.market.api.MarketRepository
-
Loads bounded pending purchases for crash recovery.
- pendingPurchasesAsync(int) - Method in interface com.cotani.market.api.MarketService
-
Returns bounded pending purchases that may be retried with the same id.
- pendingPurchasesAsync(int) - Method in class com.cotani.market.storage.StorageMarketRepository
- price() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
pricerecord component. - price() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
pricerecord component. - price() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
pricerecord component. - purchase() - Method in record class com.cotani.market.api.event.PurchaseReleasedEvent
-
Returns the value of the
purchaserecord component. - purchase() - Method in record class com.cotani.market.api.event.PurchaseReservedEvent
-
Returns the value of the
purchaserecord component. - purchase() - Method in record class com.cotani.market.api.event.PurchaseSettledEvent
-
Returns the value of the
purchaserecord component. - purchase() - Method in record class com.cotani.market.api.MarketPurchaseReservation
-
Returns the value of the
purchaserecord component. - PURCHASE_PENDING - Enum constant in enum class com.cotani.market.api.MarketListingStatus
- purchaseAsync(MarketPurchaseRequest) - Method in interface com.cotani.market.api.MarketService
-
Reserves, settles and returns a purchase; retries must reuse its purchase id.
- purchaseId() - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Returns the value of the
purchaseIdrecord component. - purchaseId() - Method in exception class com.cotani.market.api.MarketPurchaseStateException
- PurchaseReleasedEvent - Record Class in com.cotani.market.api.event
-
Published after a pending purchase is safely released.
- PurchaseReleasedEvent(MarketPurchase) - Constructor for record class com.cotani.market.api.event.PurchaseReleasedEvent
-
Creates an instance of a
PurchaseReleasedEventrecord class. - purchaseReservationTimeout() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns the value of the
purchaseReservationTimeoutrecord component. - PurchaseReservedEvent - Record Class in com.cotani.market.api.event
-
Published after a listing is durably reserved for a buyer.
- PurchaseReservedEvent(MarketPurchase) - Constructor for record class com.cotani.market.api.event.PurchaseReservedEvent
-
Creates an instance of a
PurchaseReservedEventrecord class. - PurchaseSettledEvent - Record Class in com.cotani.market.api.event
-
Published after settlement and durable marketplace completion.
- PurchaseSettledEvent(MarketPurchase) - Constructor for record class com.cotani.market.api.event.PurchaseSettledEvent
-
Creates an instance of a
PurchaseSettledEventrecord class. - purgeAsync(Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Purges terminal records older than the cutoff and deliberately ends their idempotency window.
- purgeAsync(Instant) - Method in interface com.cotani.market.api.MarketService
-
Purges terminal records older than the cutoff.
- purgeAsync(Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
R
- random() - Static method in record class com.cotani.market.api.MarketListingId
- random() - Static method in record class com.cotani.market.api.MarketPurchaseId
- releasePendingAsync(MarketPurchaseId) - Method in interface com.cotani.market.api.MarketService
-
Reconciles a pending purchase and releases it only when the adapter proves no effects exist.
- releasePendingAsync(MarketPurchaseId, Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Releases a pending purchase and returns the listing to its active or expired state.
- releasePendingAsync(MarketPurchaseId, Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
- repositoryTimeout() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns the value of the
repositoryTimeoutrecord component. - reservedAt() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
reservedAtrecord component. - reservePurchaseAsync(MarketPurchaseRequest, Instant) - Method in interface com.cotani.market.api.MarketRepository
-
Reserves a listing and returns an idempotent pending or already-settled purchase.
- reservePurchaseAsync(MarketPurchaseRequest, Instant) - Method in class com.cotani.market.storage.StorageMarketRepository
S
- sellerId() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
sellerIdrecord component. - sellerId() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns the value of the
sellerIdrecord component. - sellerId() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
sellerIdrecord component. - sellerId() - Method in record class com.cotani.market.api.MarketQuery
-
Returns the value of the
sellerIdrecord component. - sellerId(UUID) - Method in class com.cotani.market.api.MarketQuery.Builder
- serializedData() - Method in record class com.cotani.market.api.MarketItem
-
Returns the value of the
serializedDatarecord component. - settleAsync(MarketPurchase) - Method in interface com.cotani.market.api.MarketSettlementService
-
Settles the purchase exactly once from the adapter's perspective.
- settled(Instant) - Method in record class com.cotani.market.api.MarketPurchase
- SETTLED - Enum constant in enum class com.cotani.market.api.MarketPurchaseStatus
- SETTLED - Enum constant in enum class com.cotani.market.api.MarketSettlementStatus
- settledAt() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
settledAtrecord component. - settlementTimeout() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns the value of the
settlementTimeoutrecord component. - SOLD - Enum constant in enum class com.cotani.market.api.MarketListingStatus
- status() - Method in record class com.cotani.market.api.MarketListing
-
Returns the value of the
statusrecord component. - status() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns the value of the
statusrecord component. - status() - Method in exception class com.cotani.market.api.MarketPurchaseStateException
- statusAsync(MarketPurchase) - Method in interface com.cotani.market.api.MarketSettlementService
-
Reports whether external effects exist for a pending purchase.
- StorageMarketRepository - Class in com.cotani.market.storage
-
SQL-backed repository with transactional reservations and idempotent settlement receipts.
- StorageMarketRepository(CotaniStorage) - Constructor for class com.cotani.market.storage.StorageMarketRepository
T
- toString() - Method in record class com.cotani.market.api.event.ListingCancelledEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.event.ListingCreatedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.event.PurchaseReleasedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.event.PurchaseReservedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.event.PurchaseSettledEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketItem
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketListing
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketListingId
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketListingRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPage
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPrice
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPurchase
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPurchaseId
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPurchaseRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketPurchaseReservation
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketQuery
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.market.api.MarketServiceOptions
-
Returns a string representation of this record class.
U
- UNKNOWN - Enum constant in enum class com.cotani.market.api.MarketSettlementStatus
V
- value() - Method in record class com.cotani.market.api.MarketListingId
-
Returns the value of the
valuerecord component. - value() - Method in record class com.cotani.market.api.MarketPurchaseId
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class com.cotani.market.api.MarketListingStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.cotani.market.api.MarketPurchaseStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.cotani.market.api.MarketSettlementStatus
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.market.api.MarketListingStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.cotani.market.api.MarketPurchaseStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.cotani.market.api.MarketSettlementStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in class com.cotani.market.storage.CreateMarketIndexesMigration
- version() - Method in class com.cotani.market.storage.CreateMarketTablesMigration
W
- withPurchaseReservationTimeout(CompletionStage) - Method in record class com.cotani.market.api.MarketServiceOptions
- withRepositoryTimeout(CompletionStage) - Method in record class com.cotani.market.api.MarketServiceOptions
- withSettlementTimeout(CompletionStage) - Method in record class com.cotani.market.api.MarketServiceOptions
- withStatus(MarketListingStatus) - Method in record class com.cotani.market.api.MarketListing
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form