Index

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

A

autosaveEnabled() - Method in record class com.cotani.cache.policy.CacheSettings
 
autosaveEvery(Duration) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
autosaveEvery(Duration) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
autosaveInterval() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the autosaveInterval record component.
autosaveInterval(Duration) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 

B

build() - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
build(PaperTaskScheduler) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
build(Plugin, PaperTaskScheduler) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
builder() - Static method in record class com.cotani.cache.policy.CacheSettings
 

C

CacheDiagnostics<K,V> - Interface in com.cotani.cache.api
Exposes immutable cache snapshots and statistics without mutation capabilities.
CacheEntry<V> - Class in com.cotani.cache.entry
Wraps a cached value with dirty tracking and save timestamps.
CacheException - Exception Class in com.cotani.cache.exception
Base exception for cache errors.
CacheException(String) - Constructor for exception class com.cotani.cache.exception.CacheException
 
CacheException(String, Throwable) - Constructor for exception class com.cotani.cache.exception.CacheException
 
CacheInvalidation<K> - Record Class in com.cotani.cache.invalidation
Identifies a cache key changed by one cache instance.
CacheInvalidation(UUID, K) - Constructor for record class com.cotani.cache.invalidation.CacheInvalidation
Creates an instance of a CacheInvalidation record class.
CacheInvalidationBus<K> - Interface in com.cotani.cache.invalidation
Cooperative invalidation SPI for caches that share a repository.
CacheInvalidationSubscription - Interface in com.cotani.cache.invalidation
A closeable invalidation-bus subscription.
CacheLoadException - Exception Class in com.cotani.cache.exception
Thrown when a cache entry fails to load from the repository.
CacheLoadException(String) - Constructor for exception class com.cotani.cache.exception.CacheLoadException
 
CacheLoadException(String, Throwable) - Constructor for exception class com.cotani.cache.exception.CacheLoadException
 
CacheMutator<K,V> - Interface in com.cotani.cache.api
Mutates entries already owned by a cache instance.
CachePersistence<K> - Interface in com.cotani.cache.api
Persists cache state asynchronously on the cache-owned executor.
CachePreset - Enum Class in com.cotani.cache.policy
 
CacheReader<K,V> - Interface in com.cotani.cache.api
Read-only view of an asynchronous cache.
CacheRepository<K,V> - Interface in com.cotani.cache.repository
Repository for cache persistence.
CacheSaveException - Exception Class in com.cotani.cache.exception
Thrown when a cache entry fails to persist to the repository.
CacheSaveException(String, Throwable) - Constructor for exception class com.cotani.cache.exception.CacheSaveException
 
CacheSettings - Record Class in com.cotani.cache.policy
Immutable configuration for cache behavior.
CacheSettings(long, Duration, Duration, Duration, boolean, boolean, boolean, boolean, boolean) - Constructor for record class com.cotani.cache.policy.CacheSettings
Creates an instance of a CacheSettings record class.
CacheSettingsBuilder - Class in com.cotani.cache.policy
Fluent builder for CacheSettings.
CacheSettingsBuilder() - Constructor for class com.cotani.cache.policy.CacheSettingsBuilder
 
CacheStatsView - Record Class in com.cotani.cache.stats
Immutable snapshot of cache statistics at a point in time.
CacheStatsView(long, long, long, double, long, int) - Constructor for record class com.cotani.cache.stats.CacheStatsView
Creates an instance of a CacheStatsView record class.
close() - Method in interface com.cotani.cache.api.DataCache
Begins closing the cache without blocking.
close() - Method in interface com.cotani.cache.api.PlayerDataCache
 
close() - Method in interface com.cotani.cache.invalidation.CacheInvalidationSubscription
 
close() - Method in class com.cotani.cache.listener.PlayerDataCacheListener
 
closeAsync() - Method in interface com.cotani.cache.api.DataCache
Gracefully closes the cache asynchronously, saving dirty entries.
closeAsync() - Method in interface com.cotani.cache.api.PlayerDataCache
 
com.cotani.cache - package com.cotani.cache
 
com.cotani.cache.api - package com.cotani.cache.api
 
com.cotani.cache.builder - package com.cotani.cache.builder
 
com.cotani.cache.entry - package com.cotani.cache.entry
 
com.cotani.cache.exception - package com.cotani.cache.exception
 
com.cotani.cache.invalidation - package com.cotani.cache.invalidation
 
com.cotani.cache.listener - package com.cotani.cache.listener
 
com.cotani.cache.policy - package com.cotani.cache.policy
 
com.cotani.cache.repository - package com.cotani.cache.repository
 
com.cotani.cache.stats - package com.cotani.cache.stats
 
contains(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
contains(K) - Method in interface com.cotani.cache.api.CacheDiagnostics
 
contains(K) - Method in interface com.cotani.cache.api.DataCache
Checks whether the cache contains an entry for the given key.
contains(Player) - Method in interface com.cotani.cache.api.PlayerDataCache
Checks whether the cache contains an entry for the given player.
CotaniCache - Class in com.cotani.cache
Factory for creating cache builders.
CotaniCaches - Class in com.cotani.cache
Entrypoint factory for creating cache builders.
create(PlayerDataCache, CacheSettings, Logger) - Static method in class com.cotani.cache.listener.PlayerDataCacheListener
 
create(Class, Class) - Static method in class com.cotani.cache.builder.DataCacheBuilder
 
create(Class) - Static method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
create(UUID) - Method in interface com.cotani.cache.api.PlayerValueFactory
Creates a default value for the given player.

D

data(Class, Class) - Static method in class com.cotani.cache.CotaniCache
Creates a builder for a generic data cache.
data(Class, Class) - Static method in class com.cotani.cache.CotaniCaches
Creates a builder for a generic data cache.
DataCache<K,V> - Interface in com.cotani.cache.api
Generic asynchronous cache for key-value pairs with persistence support.
DataCacheBuilder<K,V> - Class in com.cotani.cache.builder
 
defaultValue(PlayerValueFactory) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
defaultValue(Function) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
defaultValue(Supplier) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
delete(K) - Method in interface com.cotani.cache.repository.CacheRepository
Deletes a persisted entry.
delete(K) - Method in class com.cotani.cache.repository.NoopCacheRepository
 
dirty() - Method in class com.cotani.cache.entry.CacheEntry
 
dirtyCount() - Method in interface com.cotani.cache.api.CacheDiagnostics
 
dirtyCount() - Method in interface com.cotani.cache.api.DataCache
Returns the number of dirty entries.
dirtyCount() - Method in interface com.cotani.cache.api.PlayerDataCache
 
dirtyEntries() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the dirtyEntries record component.

E

equals(Object) - Method in record class com.cotani.cache.invalidation.CacheInvalidation
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cache.policy.CacheSettings
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cache.stats.CacheStatsView
Indicates whether some other object is "equal to" this one.
evictionCount() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the evictionCount record component.
expireAfterAccess() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the expireAfterAccess record component.
expireAfterAccess(Duration) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
expireAfterAccess(Duration) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
expireAfterAccess(Duration) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
expireAfterAccessEnabled() - Method in record class com.cotani.cache.policy.CacheSettings
 
expireAfterWrite() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the expireAfterWrite record component.
expireAfterWrite(Duration) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
expireAfterWrite(Duration) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
expireAfterWrite(Duration) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
expireAfterWriteEnabled() - Method in record class com.cotani.cache.policy.CacheSettings
 

F

find(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
find(K) - Method in interface com.cotani.cache.api.CacheReader
 
find(K) - Method in interface com.cotani.cache.api.DataCache
Returns the cached value if present, empty otherwise.
find(K) - Method in interface com.cotani.cache.repository.CacheRepository
Finds a persisted value by key.
find(K) - Method in class com.cotani.cache.repository.NoopCacheRepository
 
find(Player) - Method in interface com.cotani.cache.api.PlayerDataCache
 

G

get(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
get(K) - Method in interface com.cotani.cache.api.CacheReader
 
get(K) - Method in interface com.cotani.cache.api.DataCache
Returns the cached value for the given key.
get(Player) - Method in interface com.cotani.cache.api.PlayerDataCache
 
getOrLoad(K) - Method in interface com.cotani.cache.api.CacheReader
 
getOrLoad(K) - Method in interface com.cotani.cache.api.DataCache
Returns the cached value, loading from the repository if necessary.
getOrLoadAsync(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
getOrLoadAsync(K) - Method in interface com.cotani.cache.api.CacheReader
 
getOrLoadAsync(K) - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.getOrLoad(Object).

H

hashCode() - Method in record class com.cotani.cache.invalidation.CacheInvalidation
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cache.policy.CacheSettings
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns a hash code value for this object.
HIGH_ACTIVITY - Enum constant in enum class com.cotani.cache.policy.CachePreset
 
highActivity() - Static method in record class com.cotani.cache.policy.CacheSettings
 
hitCount() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the hitCount record component.
hitRate() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the hitRate record component.

I

invalidationBus(CacheInvalidationBus) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
invalidationBus(CacheInvalidationBus) - Method in class com.cotani.cache.builder.DataCacheBuilder
 

K

key() - Method in record class com.cotani.cache.invalidation.CacheInvalidation
Returns the value of the key record component.

L

lastSavedAt() - Method in class com.cotani.cache.entry.CacheEntry
 
load(K) - Method in interface com.cotani.cache.api.CacheReader
 
load(K) - Method in interface com.cotani.cache.api.DataCache
Invalidates and reloads the entry from the repository.
loadAsync(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
loadAsync(K) - Method in interface com.cotani.cache.api.CacheReader
 
loadAsync(K) - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.load(Object).
loadedAt() - Method in class com.cotani.cache.entry.CacheEntry
 
loadOnJoin() - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
loadOnJoin() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the loadOnJoin record component.
loadOnJoin(boolean) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
LocalCacheInvalidationBus<K> - Class in com.cotani.cache.invalidation
In-process invalidation bus, useful when multiple cache instances share one JVM.
LocalCacheInvalidationBus() - Constructor for class com.cotani.cache.invalidation.LocalCacheInvalidationBus
 

M

markDirty() - Method in class com.cotani.cache.entry.CacheEntry
Marks the entry as dirty and returns true if it transitioned from clean to dirty.
markDirty(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
markDirty(K) - Method in interface com.cotani.cache.api.CacheMutator
 
markDirty(K) - Method in interface com.cotani.cache.api.DataCache
Marks the entry as dirty (pending save).
markDirty(Player) - Method in interface com.cotani.cache.api.PlayerDataCache
Marks the entry for the given player as dirty.
markSaved() - Method in class com.cotani.cache.entry.CacheEntry
 
markSavedIfVersionMatches(long) - Method in class com.cotani.cache.entry.CacheEntry
Marks this entry as saved only if its current version matches expectedVersion.
maximumConcurrentSaves(int) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
maximumConcurrentSaves(int) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
maximumSize() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the maximumSize record component.
maximumSize(long) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
maximumSize(long) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
maximumSize(long) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
missCount() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the missCount record component.
mutate(Consumer) - Method in class com.cotani.cache.entry.CacheEntry
 
mutate(K, Consumer) - Method in interface com.cotani.cache.api.CacheMutator
 
mutate(K, Consumer) - Method in interface com.cotani.cache.api.DataCache
Mutates the entry in-place.
mutateAsync(UUID, Consumer) - Method in interface com.cotani.cache.api.PlayerDataCache
 
mutateAsync(K, Consumer) - Method in interface com.cotani.cache.api.CacheMutator
 
mutateAsync(K, Consumer) - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.mutate(Object, Consumer).

N

noop() - Static method in interface com.cotani.cache.invalidation.CacheInvalidationSubscription
 
NoopCacheInvalidationBus<K> - Class in com.cotani.cache.invalidation
Local-only invalidation policy used when no distributed transport is configured.
NoopCacheInvalidationBus() - Constructor for class com.cotani.cache.invalidation.NoopCacheInvalidationBus
 
NoopCacheRepository<K,V> - Class in com.cotani.cache.repository
No-op repository that performs no persistence.
NoopCacheRepository() - Constructor for class com.cotani.cache.repository.NoopCacheRepository
 

O

of(V) - Static method in class com.cotani.cache.entry.CacheEntry
 
onJoin(PlayerJoinEvent) - Method in class com.cotani.cache.listener.PlayerDataCacheListener
 
onQuit(PlayerQuitEvent) - Method in class com.cotani.cache.listener.PlayerDataCacheListener
 

P

PLAYER_DATA - Enum constant in enum class com.cotani.cache.policy.CachePreset
 
playerData() - Static method in record class com.cotani.cache.policy.CacheSettings
 
PlayerDataCache<V> - Interface in com.cotani.cache.api
Cache specialized for player data, indexed by Player or UUID.
PlayerDataCacheBuilder<V> - Class in com.cotani.cache.builder
 
PlayerDataCacheListener<V> - Class in com.cotani.cache.listener
Bukkit listener that loads player data on join and saves/unloads on quit.
players(Class) - Static method in class com.cotani.cache.CotaniCache
Creates a builder for a player data cache.
players(Class) - Static method in class com.cotani.cache.CotaniCaches
Creates a builder for a player data cache.
PlayerValueFactory<V> - Interface in com.cotani.cache.api
Factory for creating default player values when no persisted data exists.
preset(CachePreset) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
preset(CachePreset) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
publish(CacheInvalidation) - Method in interface com.cotani.cache.invalidation.CacheInvalidationBus
 
publish(CacheInvalidation) - Method in class com.cotani.cache.invalidation.LocalCacheInvalidationBus
 
publish(CacheInvalidation) - Method in class com.cotani.cache.invalidation.NoopCacheInvalidationBus
 
put(K, V) - Method in interface com.cotani.cache.api.CacheMutator
 
put(K, V) - Method in interface com.cotani.cache.api.DataCache
Puts a value into the cache, replacing any existing entry.

R

recordStats() - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
recordStats() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the recordStats record component.
recordStats(boolean) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
repository(CacheRepository) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
repository(CacheRepository) - Method in class com.cotani.cache.builder.DataCacheBuilder
 

S

save(K) - Method in interface com.cotani.cache.api.CachePersistence
 
save(K) - Method in interface com.cotani.cache.api.DataCache
Persists the entry to the repository.
save(K, V) - Method in interface com.cotani.cache.repository.CacheRepository
Persists a key-value pair.
save(K, V) - Method in class com.cotani.cache.repository.NoopCacheRepository
 
saveAll() - Method in interface com.cotani.cache.api.CachePersistence
 
saveAll() - Method in interface com.cotani.cache.api.DataCache
Saves all cached entries.
saveAll() - Method in interface com.cotani.cache.api.PlayerDataCache
 
saveAllAsync() - Method in interface com.cotani.cache.api.CachePersistence
 
saveAllAsync() - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.saveAll().
saveAllAsync() - Method in interface com.cotani.cache.api.PlayerDataCache
 
saveAsync(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
saveAsync(K) - Method in interface com.cotani.cache.api.CachePersistence
 
saveAsync(K) - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.save(Object).
saveDirty() - Method in interface com.cotani.cache.api.CachePersistence
 
saveDirty() - Method in interface com.cotani.cache.api.DataCache
Saves all dirty entries.
saveDirty() - Method in interface com.cotani.cache.api.PlayerDataCache
 
saveDirtyAsync() - Method in interface com.cotani.cache.api.CachePersistence
 
saveDirtyAsync() - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.saveDirty().
saveDirtyAsync() - Method in interface com.cotani.cache.api.PlayerDataCache
 
saveOnEvict() - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
saveOnEvict() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the saveOnEvict record component.
saveOnEvict(boolean) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
saveOnQuit() - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
saveOnQuit() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the saveOnQuit record component.
saveOnQuit(boolean) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
settings() - Method in enum class com.cotani.cache.policy.CachePreset
 
settings(CacheSettings) - Method in class com.cotani.cache.builder.DataCacheBuilder
 
settings(CacheSettings) - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
size() - Method in interface com.cotani.cache.api.CacheDiagnostics
 
size() - Method in interface com.cotani.cache.api.DataCache
Returns the estimated number of entries.
size() - Method in interface com.cotani.cache.api.PlayerDataCache
 
size() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns the value of the size record component.
snapshot() - Method in interface com.cotani.cache.api.CacheDiagnostics
 
snapshot() - Method in interface com.cotani.cache.api.DataCache
Returns an immutable snapshot of cached values.
sourceId() - Method in record class com.cotani.cache.invalidation.CacheInvalidation
Returns the value of the sourceId record component.
STATIC_DATA - Enum constant in enum class com.cotani.cache.policy.CachePreset
 
staticData() - Static method in record class com.cotani.cache.policy.CacheSettings
 
stats() - Method in interface com.cotani.cache.api.CacheDiagnostics
 
stats() - Method in interface com.cotani.cache.api.DataCache
Returns cache statistics.
subscribe(Consumer) - Method in interface com.cotani.cache.invalidation.CacheInvalidationBus
 
subscribe(Consumer) - Method in class com.cotani.cache.invalidation.LocalCacheInvalidationBus
 
subscribe(Consumer) - Method in class com.cotani.cache.invalidation.NoopCacheInvalidationBus
 

T

temporary() - Static method in record class com.cotani.cache.policy.CacheSettings
 
temporary(Class, Class, Duration) - Static method in class com.cotani.cache.CotaniCache
Creates a temporary cache builder with the given expiration.
temporary(Class, Class, Duration) - Static method in class com.cotani.cache.CotaniCaches
Creates a temporary cache builder with the given expiration.
TEMPORARY - Enum constant in enum class com.cotani.cache.policy.CachePreset
 
toString() - Method in record class com.cotani.cache.invalidation.CacheInvalidation
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cache.policy.CacheSettings
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cache.stats.CacheStatsView
Returns a string representation of this record class.

U

unload(UUID) - Method in interface com.cotani.cache.api.PlayerDataCache
 
unload(K) - Method in interface com.cotani.cache.api.CacheMutator
 
unload(K) - Method in interface com.cotani.cache.api.DataCache
Removes the entry from the cache without persisting.
unload(Player) - Method in interface com.cotani.cache.api.PlayerDataCache
Unloads the cached entry for the given player.
unloadOnQuit() - Method in class com.cotani.cache.builder.PlayerDataCacheBuilder
 
unloadOnQuit() - Method in record class com.cotani.cache.policy.CacheSettings
Returns the value of the unloadOnQuit record component.
unloadOnQuit(boolean) - Method in class com.cotani.cache.policy.CacheSettingsBuilder
 
update(UnaryOperator) - Method in class com.cotani.cache.entry.CacheEntry
 
update(K, UnaryOperator) - Method in interface com.cotani.cache.api.CacheMutator
 
update(K, UnaryOperator) - Method in interface com.cotani.cache.api.DataCache
Atomically updates the entry using the provided function.
updateAsync(UUID, UnaryOperator) - Method in interface com.cotani.cache.api.PlayerDataCache
 
updateAsync(K, UnaryOperator) - Method in interface com.cotani.cache.api.CacheMutator
 
updateAsync(K, UnaryOperator) - Method in interface com.cotani.cache.api.DataCache
Async-suffixed alias for DataCache.update(Object, UnaryOperator).

V

value() - Method in class com.cotani.cache.entry.CacheEntry
 
valueOf(String) - Static method in enum class com.cotani.cache.policy.CachePreset
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.cotani.cache.policy.CachePreset
Returns an array containing the constants of this enum class, in the order they are declared.
version() - Method in class com.cotani.cache.entry.CacheEntry
 
A B C D E F G H I K L M N O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form