Index

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

A

amount() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns the value of the amount record component.
amount() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns the value of the amount record component.

C

close() - Method in interface com.cotani.statistics.api.StatisticService
Starts asynchronous shutdown and rejects new increments.
com.cotani.statistics - package com.cotani.statistics
 
com.cotani.statistics.api - package com.cotani.statistics.api
 
com.cotani.statistics.api.event - package com.cotani.statistics.api.event
 
com.cotani.statistics.storage - package com.cotani.statistics.storage
 
CotaniStatistics - Class in com.cotani.statistics
Factories for the cotani-statistics module.
CreateStatisticIndexesMigration - Class in com.cotani.statistics.storage
Adds the index used by bounded statistic rankings.
CreateStatisticIndexesMigration() - Constructor for class com.cotani.statistics.storage.CreateStatisticIndexesMigration
 
CreateStatisticOperationsMigration - Class in com.cotani.statistics.storage
Creates the idempotency ledger for statistic increments.
CreateStatisticOperationsMigration() - Constructor for class com.cotani.statistics.storage.CreateStatisticOperationsMigration
 
CreateStatisticTablesMigration - Class in com.cotani.statistics.storage
Creates the SQL table used by StorageStatisticRepository.
CreateStatisticTablesMigration() - Constructor for class com.cotani.statistics.storage.CreateStatisticTablesMigration
 
current() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns the value of the current record component.
current() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns the value of the current record component.

D

defaults() - Static method in record class com.cotani.statistics.api.StatisticServiceOptions
 
description() - Method in class com.cotani.statistics.storage.CreateStatisticIndexesMigration
 
description() - Method in class com.cotani.statistics.storage.CreateStatisticOperationsMigration
 
description() - Method in class com.cotani.statistics.storage.CreateStatisticTablesMigration
 

E

entries() - Method in record class com.cotani.statistics.api.StatisticRanking
Returns the value of the entries record component.
equals(Object) - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticEntry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticOperationId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticRankEntry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticRanking
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.statistics.api.StatisticUpdate
Indicates whether some other object is "equal to" this one.
eventTimeout() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns the value of the eventTimeout record component.

F

findAsync(UUID, StatisticId) - Method in interface com.cotani.statistics.api.StatisticRepository
Loads one statistic; absence means the player has not recorded it yet.
findAsync(UUID, StatisticId) - Method in interface com.cotani.statistics.api.StatisticService
Loads one statistic after previously accepted mutations for the same player have settled.
findAsync(UUID, StatisticId) - Method in class com.cotani.statistics.storage.StorageStatisticRepository
 
fromRepository(StatisticRepository, EventBus) - Static method in class com.cotani.statistics.CotaniStatistics
Creates a service over a caller-owned repository.
fromRepository(StatisticRepository, EventBus, StatisticServiceOptions) - Static method in class com.cotani.statistics.CotaniStatistics
Creates a service over a repository with explicit operational options.
fromRepository(StatisticRepository, EventBus, StatisticServiceOptions, Clock) - Static method in class com.cotani.statistics.CotaniStatistics
Creates a service with explicit operational options and clock.

H

hashCode() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticOperationId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticRankEntry
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticRanking
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns a hash code value for this object.

I

incrementAsync(UUID, StatisticId, long) - Method in interface com.cotani.statistics.api.StatisticService
Atomically increments a statistic without retaining an idempotency ledger entry.
incrementAsync(UUID, StatisticId, long, StatisticOperationId) - Method in interface com.cotani.statistics.api.StatisticService
Atomically increments a statistic and publishes a best-effort domain event.
incrementAsync(UUID, StatisticId, long, Instant) - Method in interface com.cotani.statistics.api.StatisticRepository
Atomically increments a statistic and returns the exact previous and current values.
incrementAsync(UUID, StatisticId, long, Instant) - Method in class com.cotani.statistics.storage.StorageStatisticRepository
 
incrementIdempotentlyAsync(UUID, StatisticId, long, Instant, StatisticOperationId) - Method in interface com.cotani.statistics.api.StatisticRepository
Atomically increments a statistic with a durable idempotency key.
incrementIdempotentlyAsync(UUID, StatisticId, long, Instant, StatisticOperationId) - Method in class com.cotani.statistics.storage.StorageStatisticRepository
 
initial(UUID, StatisticId) - Static method in record class com.cotani.statistics.api.StatisticEntry
 
inMemory(EventBus) - Static method in class com.cotani.statistics.CotaniStatistics
Creates an isolated in-memory service, suitable for tests or ephemeral servers.
inMemory(EventBus, StatisticServiceOptions) - Static method in class com.cotani.statistics.CotaniStatistics
Creates an in-memory service with explicit operational options.

M

maxMutationAttempts() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns the value of the maxMutationAttempts record component.
maxPendingMutations() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns the value of the maxPendingMutations record component.
migrate(Schema) - Method in class com.cotani.statistics.storage.CreateStatisticIndexesMigration
 
migrate(Schema) - Method in class com.cotani.statistics.storage.CreateStatisticOperationsMigration
 
migrate(Schema) - Method in class com.cotani.statistics.storage.CreateStatisticTablesMigration
 
migrations() - Static method in class com.cotani.statistics.CotaniStatistics
Returns the migrations required by the SQL adapter.
migrations() - Static method in class com.cotani.statistics.storage.StorageStatisticRepository
 

N

newlyApplied() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns the value of the newlyApplied record component.

O

of(String) - Static method in record class com.cotani.statistics.api.StatisticId
 
of(UUID) - Static method in record class com.cotani.statistics.api.StatisticOperationId
 

P

playerId() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns the value of the playerId record component.
playerId() - Method in exception class com.cotani.statistics.api.StatisticConflictException
 
playerId() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns the value of the playerId record component.
playerId() - Method in exception class com.cotani.statistics.api.StatisticOverflowException
 
playerId() - Method in record class com.cotani.statistics.api.StatisticRankEntry
Returns the value of the playerId record component.
previousValue() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns the value of the previousValue record component.
previousValue() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns the value of the previousValue record component.

R

random() - Static method in record class com.cotani.statistics.api.StatisticOperationId
 
rank() - Method in record class com.cotani.statistics.api.StatisticRankEntry
Returns the value of the rank record component.
repositoryTimeout() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns the value of the repositoryTimeout record component.
revision() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns the value of the revision record component.

S

StatisticChangedEvent - Record Class in com.cotani.statistics.api.event
Published after an atomic statistic increment is durably accepted.
StatisticChangedEvent(UUID, StatisticId, long, long, StatisticEntry) - Constructor for record class com.cotani.statistics.api.event.StatisticChangedEvent
Creates an instance of a StatisticChangedEvent record class.
StatisticConflictException - Exception Class in com.cotani.statistics.api
Raised when an atomic statistic mutation lost an initialization race.
StatisticConflictException(UUID, StatisticId) - Constructor for exception class com.cotani.statistics.api.StatisticConflictException
 
StatisticEntry - Record Class in com.cotani.statistics.api
Immutable value and persistence metadata for one player statistic.
StatisticEntry(UUID, StatisticId, long, Instant, long) - Constructor for record class com.cotani.statistics.api.StatisticEntry
Creates an instance of a StatisticEntry record class.
StatisticException - Exception Class in com.cotani.statistics.api
Base exception for expected statistics-domain failures.
StatisticException(String) - Constructor for exception class com.cotani.statistics.api.StatisticException
 
StatisticException(String, Throwable) - Constructor for exception class com.cotani.statistics.api.StatisticException
 
statisticId() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns the value of the statisticId record component.
statisticId() - Method in exception class com.cotani.statistics.api.StatisticConflictException
 
statisticId() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns the value of the statisticId record component.
statisticId() - Method in exception class com.cotani.statistics.api.StatisticOverflowException
 
statisticId() - Method in record class com.cotani.statistics.api.StatisticRanking
Returns the value of the statisticId record component.
StatisticId - Record Class in com.cotani.statistics.api
Stable identifier for one player statistic.
StatisticId(String) - Constructor for record class com.cotani.statistics.api.StatisticId
Creates an instance of a StatisticId record class.
StatisticOperationId - Record Class in com.cotani.statistics.api
Stable idempotency key for one logical statistic increment.
StatisticOperationId(UUID) - Constructor for record class com.cotani.statistics.api.StatisticOperationId
Creates an instance of a StatisticOperationId record class.
StatisticOverflowException - Exception Class in com.cotani.statistics.api
Raised when an increment would exceed Long.MAX_VALUE.
StatisticOverflowException(UUID, StatisticId) - Constructor for exception class com.cotani.statistics.api.StatisticOverflowException
 
StatisticRankEntry - Record Class in com.cotani.statistics.api
One deterministic position in a statistic ranking.
StatisticRankEntry(int, UUID, long) - Constructor for record class com.cotani.statistics.api.StatisticRankEntry
Creates an instance of a StatisticRankEntry record class.
StatisticRanking - Record Class in com.cotani.statistics.api
Immutable bounded ranking result for one statistic.
StatisticRanking(StatisticId, List) - Constructor for record class com.cotani.statistics.api.StatisticRanking
Creates an instance of a StatisticRanking record class.
StatisticRepository - Interface in com.cotani.statistics.api
Bukkit-free persistence SPI for atomic statistic increments and bounded rankings.
StatisticService - Interface in com.cotani.statistics.api
Asynchronous player statistic increments, reads and bounded rankings.
StatisticServiceOptions - Record Class in com.cotani.statistics.api
Operational limits for statistic reads, events, retries and pending mutations.
StatisticServiceOptions(Duration, int) - Constructor for record class com.cotani.statistics.api.StatisticServiceOptions
 
StatisticServiceOptions(Duration, int, Duration) - Constructor for record class com.cotani.statistics.api.StatisticServiceOptions
 
StatisticServiceOptions(Duration, int, Duration, int) - Constructor for record class com.cotani.statistics.api.StatisticServiceOptions
Creates an instance of a StatisticServiceOptions record class.
StatisticUpdate - Record Class in com.cotani.statistics.api
Atomic result of one positive statistic increment.
StatisticUpdate(long, long, StatisticEntry) - Constructor for record class com.cotani.statistics.api.StatisticUpdate
 
StatisticUpdate(long, long, StatisticEntry, boolean) - Constructor for record class com.cotani.statistics.api.StatisticUpdate
Creates an instance of a StatisticUpdate record class.
storage(CotaniStorage, EventBus) - Static method in class com.cotani.statistics.CotaniStatistics
Creates a service backed by caller-owned Cotani SQL storage.
storage(CotaniStorage, EventBus, StatisticServiceOptions) - Static method in class com.cotani.statistics.CotaniStatistics
Creates a SQL-backed service with explicit operational options.
StorageStatisticRepository - Class in com.cotani.statistics.storage
SQL-backed repository for atomic, idempotent, non-negative player statistics.
StorageStatisticRepository(CotaniStorage) - Constructor for class com.cotani.statistics.storage.StorageStatisticRepository
 

T

topAsync(StatisticId, int) - Method in interface com.cotani.statistics.api.StatisticRepository
Returns a deterministic, value-descending ranking limited by the caller.
topAsync(StatisticId, int) - Method in interface com.cotani.statistics.api.StatisticService
Loads a bounded deterministic ranking.
topAsync(StatisticId, int) - Method in class com.cotani.statistics.storage.StorageStatisticRepository
 
toString() - Method in record class com.cotani.statistics.api.event.StatisticChangedEvent
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticOperationId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticRankEntry
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticRanking
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticServiceOptions
Returns a string representation of this record class.
toString() - Method in record class com.cotani.statistics.api.StatisticUpdate
Returns a string representation of this record class.

U

updatedAt() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns the value of the updatedAt record component.

V

value() - Method in record class com.cotani.statistics.api.StatisticEntry
Returns the value of the value record component.
value() - Method in record class com.cotani.statistics.api.StatisticId
Returns the value of the value record component.
value() - Method in record class com.cotani.statistics.api.StatisticOperationId
Returns the value of the value record component.
value() - Method in record class com.cotani.statistics.api.StatisticRankEntry
Returns the value of the value record component.
version() - Method in class com.cotani.statistics.storage.CreateStatisticIndexesMigration
 
version() - Method in class com.cotani.statistics.storage.CreateStatisticOperationsMigration
 
version() - Method in class com.cotani.statistics.storage.CreateStatisticTablesMigration
 

W

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