Index

A C D E F H I M O P Q R S T V W 
All Classes and Interfaces|All Packages|Serialized Form

A

actualRevision() - Method in exception class com.cotani.quest.api.QuestProgressConflictException
 
amount() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns the value of the amount record component.

C

claim() - Method in record class com.cotani.quest.api.event.QuestClaimedEvent
Returns the value of the claim record component.
claimAsync(UUID, QuestId) - Method in interface com.cotani.quest.api.QuestService
Claims a completed quest with a generated idempotency key.
claimAsync(UUID, QuestId, QuestClaimId) - Method in interface com.cotani.quest.api.QuestService
Claims a completed quest using a caller-owned idempotency key.
claimedAt() - Method in record class com.cotani.quest.api.QuestClaim
Returns the value of the claimedAt record component.
claimedAt() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the claimedAt record component.
claimId() - Method in record class com.cotani.quest.api.QuestClaim
Returns the value of the claimId record component.
claimId() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the claimId record component.
close() - Method in interface com.cotani.quest.api.QuestService
Starts asynchronous shutdown and rejects new mutations.
com.cotani.quest - package com.cotani.quest
 
com.cotani.quest.api - package com.cotani.quest.api
 
com.cotani.quest.api.event - package com.cotani.quest.api.event
 
com.cotani.quest.storage - package com.cotani.quest.storage
 
completed() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the completed record component.
completedAt() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the completedAt record component.
CotaniQuests - Class in com.cotani.quest
Factories for the cotani-quest module.
CreateQuestIndexesMigration - Class in com.cotani.quest.storage
Adds indexes used by player quest progress queries.
CreateQuestIndexesMigration() - Constructor for class com.cotani.quest.storage.CreateQuestIndexesMigration
 
CreateQuestTablesMigration - Class in com.cotani.quest.storage
Creates the SQL table used by StorageQuestRepository.
CreateQuestTablesMigration() - Constructor for class com.cotani.quest.storage.CreateQuestTablesMigration
 

D

defaults() - Static method in record class com.cotani.quest.api.QuestServiceOptions
 
description() - Method in class com.cotani.quest.storage.CreateQuestIndexesMigration
 
description() - Method in class com.cotani.quest.storage.CreateQuestTablesMigration
 

E

equals(Object) - Method in record class com.cotani.quest.api.event.QuestClaimedEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestClaim
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestClaimId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestDefinition
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestObjective
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestObjectiveId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestProgress
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.quest.api.QuestServiceOptions
Indicates whether some other object is "equal to" this one.
eventTimeout() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns the value of the eventTimeout record component.
existingClaimId() - Method in exception class com.cotani.quest.api.QuestAlreadyClaimedException
 
expectedRevision() - Method in exception class com.cotani.quest.api.QuestProgressConflictException
 

F

findAsync(UUID, QuestId) - Method in interface com.cotani.quest.api.QuestRepository
Loads one snapshot; absence means the player has not started the quest.
findAsync(UUID, QuestId) - Method in class com.cotani.quest.storage.StorageQuestRepository
 
findDefinition(QuestId) - Method in interface com.cotani.quest.api.QuestService
Returns a registered definition, if present.
findObjective(QuestObjectiveId) - Method in record class com.cotani.quest.api.QuestDefinition
Finds an objective by id without exposing an internal mutable collection.
findProgressAsync(UUID, QuestId) - Method in interface com.cotani.quest.api.QuestService
Loads one player's progress after previously accepted mutations become visible.
fromRepository(QuestRepository, EventBus) - Static method in class com.cotani.quest.CotaniQuests
Creates a service over a caller-owned repository.
fromRepository(QuestRepository, EventBus, QuestServiceOptions) - Static method in class com.cotani.quest.CotaniQuests
Creates a service over a caller-owned repository with explicit operational options.
fromRepository(QuestRepository, EventBus, QuestServiceOptions, Clock) - Static method in class com.cotani.quest.CotaniQuests
Creates a service with explicit operational options and clock.

H

hashCode() - Method in record class com.cotani.quest.api.event.QuestClaimedEvent
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestClaim
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestClaimId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestDefinition
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestObjective
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestObjectiveId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestProgress
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns a hash code value for this object.

I

id() - Method in record class com.cotani.quest.api.QuestDefinition
Returns the value of the id record component.
id() - Method in record class com.cotani.quest.api.QuestObjective
Returns the value of the id record component.
initial(UUID, QuestId) - Static method in record class com.cotani.quest.api.QuestProgress
 
inMemory(EventBus) - Static method in class com.cotani.quest.CotaniQuests
Creates an isolated in-memory service, suitable for tests or ephemeral servers.
inMemory(EventBus, QuestServiceOptions) - Static method in class com.cotani.quest.CotaniQuests
Creates an in-memory service with explicit operational options.
isClaimed() - Method in record class com.cotani.quest.api.QuestProgress
 

M

maxMutationAttempts() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns the value of the maxMutationAttempts record component.
maxPendingMutations() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns the value of the maxPendingMutations record component.
migrate(Schema) - Method in class com.cotani.quest.storage.CreateQuestIndexesMigration
 
migrate(Schema) - Method in class com.cotani.quest.storage.CreateQuestTablesMigration
 
migrations() - Static method in class com.cotani.quest.CotaniQuests
Returns the migrations required by StorageQuestRepository.
migrations() - Static method in class com.cotani.quest.storage.StorageQuestRepository
 

O

objectiveId() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns the value of the objectiveId record component.
objectiveProgress() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the objectiveProgress record component.
objectives() - Method in record class com.cotani.quest.api.QuestDefinition
Returns the value of the objectives record component.
of(String) - Static method in record class com.cotani.quest.api.QuestId
 
of(String) - Static method in record class com.cotani.quest.api.QuestObjectiveId
 

P

playerId() - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Returns the value of the playerId record component.
playerId() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns the value of the playerId record component.
playerId() - Method in exception class com.cotani.quest.api.QuestAlreadyClaimedException
 
playerId() - Method in record class com.cotani.quest.api.QuestClaim
Returns the value of the playerId record component.
playerId() - Method in exception class com.cotani.quest.api.QuestNotCompletedException
 
playerId() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the playerId record component.
progress() - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Returns the value of the progress record component.
progress() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns the value of the progress record component.
progress() - Method in exception class com.cotani.quest.api.QuestProgressConflictException
 
progressFor(QuestObjectiveId) - Method in record class com.cotani.quest.api.QuestProgress
 

Q

QuestAlreadyClaimedException - Exception Class in com.cotani.quest.api
Raised when a completed quest is claimed with a different idempotency key.
QuestAlreadyClaimedException(UUID, QuestId) - Constructor for exception class com.cotani.quest.api.QuestAlreadyClaimedException
 
QuestAlreadyClaimedException(UUID, QuestId, QuestClaimId) - Constructor for exception class com.cotani.quest.api.QuestAlreadyClaimedException
 
QuestClaim - Record Class in com.cotani.quest.api
Immutable successful quest claim that can be handed to the reward service.
QuestClaim(QuestClaimId, UUID, QuestId, RewardId, Instant) - Constructor for record class com.cotani.quest.api.QuestClaim
Creates an instance of a QuestClaim record class.
QuestClaimedEvent - Record Class in com.cotani.quest.api.event
Published after a quest claim is durably recorded.
QuestClaimedEvent(QuestClaim) - Constructor for record class com.cotani.quest.api.event.QuestClaimedEvent
Creates an instance of a QuestClaimedEvent record class.
QuestClaimId - Record Class in com.cotani.quest.api
Idempotency key for one logical quest claim.
QuestClaimId(UUID) - Constructor for record class com.cotani.quest.api.QuestClaimId
Creates an instance of a QuestClaimId record class.
QuestCompletedEvent - Record Class in com.cotani.quest.api.event
Published once when a player's progress first satisfies every objective.
QuestCompletedEvent(UUID, QuestId, QuestProgress) - Constructor for record class com.cotani.quest.api.event.QuestCompletedEvent
Creates an instance of a QuestCompletedEvent record class.
QuestDefinition - Record Class in com.cotani.quest.api
Immutable quest definition composed of bounded objectives and one reward id.
QuestDefinition(QuestId, List, RewardId) - Constructor for record class com.cotani.quest.api.QuestDefinition
Creates an instance of a QuestDefinition record class.
QuestException - Exception Class in com.cotani.quest.api
Base exception for expected quest-domain failures.
QuestException(String) - Constructor for exception class com.cotani.quest.api.QuestException
 
QuestException(String, Throwable) - Constructor for exception class com.cotani.quest.api.QuestException
 
questId() - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Returns the value of the questId record component.
questId() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns the value of the questId record component.
questId() - Method in exception class com.cotani.quest.api.QuestAlreadyClaimedException
 
questId() - Method in record class com.cotani.quest.api.QuestClaim
Returns the value of the questId record component.
questId() - Method in exception class com.cotani.quest.api.QuestNotCompletedException
 
questId() - Method in exception class com.cotani.quest.api.QuestNotFoundException
 
questId() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the questId record component.
QuestId - Record Class in com.cotani.quest.api
Stable identifier for a registered quest definition.
QuestId(String) - Constructor for record class com.cotani.quest.api.QuestId
Creates an instance of a QuestId record class.
QuestNotCompletedException - Exception Class in com.cotani.quest.api
Raised when a player attempts to claim an incomplete quest.
QuestNotCompletedException(UUID, QuestId) - Constructor for exception class com.cotani.quest.api.QuestNotCompletedException
 
QuestNotFoundException - Exception Class in com.cotani.quest.api
Raised when a quest id is not registered.
QuestNotFoundException(QuestId) - Constructor for exception class com.cotani.quest.api.QuestNotFoundException
 
QuestObjective - Record Class in com.cotani.quest.api
Immutable objective definition identified by a type and target.
QuestObjective(QuestObjectiveId, String, String, long) - Constructor for record class com.cotani.quest.api.QuestObjective
Creates an instance of a QuestObjective record class.
QuestObjectiveId - Record Class in com.cotani.quest.api
Stable identifier for one objective inside a quest.
QuestObjectiveId(String) - Constructor for record class com.cotani.quest.api.QuestObjectiveId
Creates an instance of a QuestObjectiveId record class.
QuestProgress - Record Class in com.cotani.quest.api
Immutable per-player quest progress snapshot.
QuestProgress(UUID, QuestId, Map, boolean, Optional, Optional, Optional, long) - Constructor for record class com.cotani.quest.api.QuestProgress
Creates an instance of a QuestProgress record class.
QuestProgressConflictException - Exception Class in com.cotani.quest.api
Raised when another writer changed a quest snapshot before it could be saved.
QuestProgressConflictException(QuestProgress, long) - Constructor for exception class com.cotani.quest.api.QuestProgressConflictException
 
QuestProgressedEvent - Record Class in com.cotani.quest.api.event
Published after progress has been durably accepted.
QuestProgressedEvent(UUID, QuestId, QuestObjectiveId, long, QuestProgress) - Constructor for record class com.cotani.quest.api.event.QuestProgressedEvent
Creates an instance of a QuestProgressedEvent record class.
QuestRepository - Interface in com.cotani.quest.api
Bukkit-free optimistic persistence SPI for quest progress.
QuestService - Interface in com.cotani.quest.api
Asynchronous objective progress and idempotent quest claim use cases.
QuestServiceOptions - Record Class in com.cotani.quest.api
Operational limits for quest reads, event delivery, pending mutations and optimistic retries.
QuestServiceOptions(Duration, int) - Constructor for record class com.cotani.quest.api.QuestServiceOptions
 
QuestServiceOptions(Duration, int, Duration) - Constructor for record class com.cotani.quest.api.QuestServiceOptions
 
QuestServiceOptions(Duration, int, Duration, int) - Constructor for record class com.cotani.quest.api.QuestServiceOptions
Creates an instance of a QuestServiceOptions record class.

R

random() - Static method in record class com.cotani.quest.api.QuestClaimId
 
recordProgressAsync(UUID, QuestId, QuestObjectiveId, long) - Method in interface com.cotani.quest.api.QuestService
Adds bounded progress to an objective and completes it when every objective is satisfied.
register(QuestDefinition) - Method in interface com.cotani.quest.api.QuestService
Registers a definition; duplicate ids are rejected.
repositoryTimeout() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns the value of the repositoryTimeout record component.
requiredAmount() - Method in record class com.cotani.quest.api.QuestObjective
Returns the value of the requiredAmount record component.
revision() - Method in record class com.cotani.quest.api.QuestProgress
Returns the value of the revision record component.
rewardClaimId() - Method in record class com.cotani.quest.api.QuestClaim
Reuses the quest idempotency key for the corresponding reward claim.
rewardId() - Method in record class com.cotani.quest.api.QuestClaim
Returns the value of the rewardId record component.
rewardId() - Method in record class com.cotani.quest.api.QuestDefinition
Returns the value of the rewardId record component.

S

saveAsync(QuestProgress, long) - Method in interface com.cotani.quest.api.QuestRepository
Saves a snapshot only when its stored revision equals expectedRevision.
saveAsync(QuestProgress, long) - Method in class com.cotani.quest.storage.StorageQuestRepository
 
storage(CotaniStorage, EventBus) - Static method in class com.cotani.quest.CotaniQuests
Creates a service backed by the caller-owned Cotani SQL storage.
storage(CotaniStorage, EventBus, QuestServiceOptions) - Static method in class com.cotani.quest.CotaniQuests
Creates a SQL-backed service with explicit operational options.
StorageQuestRepository - Class in com.cotani.quest.storage
SQL-backed optimistic quest progress repository.
StorageQuestRepository(CotaniStorage) - Constructor for class com.cotani.quest.storage.StorageQuestRepository
 

T

target() - Method in record class com.cotani.quest.api.QuestObjective
Returns the value of the target record component.
toString() - Method in record class com.cotani.quest.api.event.QuestClaimedEvent
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.event.QuestCompletedEvent
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.event.QuestProgressedEvent
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestClaim
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestClaimId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestDefinition
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestObjective
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestObjectiveId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestProgress
Returns a string representation of this record class.
toString() - Method in record class com.cotani.quest.api.QuestServiceOptions
Returns a string representation of this record class.
type() - Method in record class com.cotani.quest.api.QuestObjective
Returns the value of the type record component.

V

value() - Method in record class com.cotani.quest.api.QuestClaimId
Returns the value of the value record component.
value() - Method in record class com.cotani.quest.api.QuestId
Returns the value of the value record component.
value() - Method in record class com.cotani.quest.api.QuestObjectiveId
Returns the value of the value record component.
version() - Method in class com.cotani.quest.storage.CreateQuestIndexesMigration
 
version() - Method in class com.cotani.quest.storage.CreateQuestTablesMigration
 

W

withEventTimeout(Duration) - Method in record class com.cotani.quest.api.QuestServiceOptions
 
withEventTimeout(CompletionStage) - Method in record class com.cotani.quest.api.QuestServiceOptions
Applies a best-effort timeout to event publication without cancelling the durable mutation.
withMaxMutationAttempts(int) - Method in record class com.cotani.quest.api.QuestServiceOptions
 
withMaxPendingMutations(int) - Method in record class com.cotani.quest.api.QuestServiceOptions
 
withRepositoryTimeout(Duration) - Method in record class com.cotani.quest.api.QuestServiceOptions
 
withRepositoryTimeout(CompletionStage) - Method in record class com.cotani.quest.api.QuestServiceOptions
Applies a caller-visible timeout to a read without cancelling the repository operation.
withRevision(long) - Method in record class com.cotani.quest.api.QuestProgress
 
A C D E F H I M O P Q R S T V W 
All Classes and Interfaces|All Packages|Serialized Form