Index

A B C D E F H I L M N P Q R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ACTIVE - Enum constant in enum class com.cotani.punishment.api.PunishmentStatus
 
activeAsync(UUID, PunishmentType) - Method in interface com.cotani.punishment.api.PunishmentService
 
activeAt() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns the value of the activeAt record component.
activeAt(Instant) - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 
activeAtAsync(UUID, PunishmentType, Instant) - Method in interface com.cotani.punishment.api.PunishmentService
Finds the newest punishment active at an explicit point in time.
actor() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the actor record component.
actor() - Method in record class com.cotani.punishment.api.Punishment.Revocation
Returns the value of the actor record component.
actor() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the actor record component.
all() - Static method in record class com.cotani.punishment.api.PunishmentQuery
 
applyAsync(PunishmentRequest) - Method in interface com.cotani.punishment.api.PunishmentService
Applies a request, returning the existing record when the ID was already accepted.
at(Instant, UUID, AuditActor, PunishmentType, String, Optional) - Static method in record class com.cotani.punishment.api.PunishmentRequest
Creates a request at an explicit instant, which is useful for replay and deterministic tests.

B

BAN - Enum constant in enum class com.cotani.punishment.api.PunishmentType
 
before() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns the value of the before record component.
before(PunishmentCursor) - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 
build() - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 
builder() - Static method in record class com.cotani.punishment.api.PunishmentQuery
 
Builder() - Constructor for class com.cotani.punishment.api.PunishmentQuery.Builder
 

C

com.cotani.punishment - package com.cotani.punishment
 
com.cotani.punishment.api - package com.cotani.punishment.api
 
com.cotani.punishment.storage - package com.cotani.punishment.storage
 
CotaniPunishments - Class in com.cotani.punishment
Factories for the cotani-punishment module.
create(PunishmentId, UUID, AuditActor, PunishmentType, String, Instant, Optional) - Static method in record class com.cotani.punishment.api.Punishment
 
createdAt() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the createdAt record component.
createdAt() - Method in record class com.cotani.punishment.api.PunishmentCursor
Returns the value of the createdAt record component.
createdAt() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the createdAt record component.
CreatePunishmentIndexesMigration - Class in com.cotani.punishment.storage
Adds indexes for target and active-state punishment lookups.
CreatePunishmentIndexesMigration() - Constructor for class com.cotani.punishment.storage.CreatePunishmentIndexesMigration
 
CreatePunishmentTablesMigration - Class in com.cotani.punishment.storage
Creates the table used by the SQL punishment repository.
CreatePunishmentTablesMigration() - Constructor for class com.cotani.punishment.storage.CreatePunishmentTablesMigration
 

D

defaults() - Static method in record class com.cotani.punishment.api.PunishmentServiceOptions
 
description() - Method in class com.cotani.punishment.storage.CreatePunishmentIndexesMigration
 
description() - Method in class com.cotani.punishment.storage.CreatePunishmentTablesMigration
 

E

equals(Object) - Method in record class com.cotani.punishment.api.Punishment
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.Punishment.Revocation
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.PunishmentCursor
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.PunishmentId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.PunishmentQuery
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.PunishmentRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.punishment.api.PunishmentServiceOptions
Indicates whether some other object is "equal to" this one.
EXPIRED - Enum constant in enum class com.cotani.punishment.api.PunishmentStatus
 
expiresAt() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the expiresAt record component.
expiresAt() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the expiresAt record component.

F

findAsync(PunishmentId) - Method in interface com.cotani.punishment.api.PunishmentRepository
Finds one punishment by its stable ID.
findAsync(PunishmentId) - Method in interface com.cotani.punishment.api.PunishmentService
Finds the current punishment with the supplied ID, if it exists.
findAsync(PunishmentId) - Method in class com.cotani.punishment.storage.StoragePunishmentRepository
 
from(Punishment) - Static method in record class com.cotani.punishment.api.PunishmentCursor
 
fromRepositoryAsync(PunishmentRepository) - Static method in class com.cotani.punishment.CotaniPunishments
Creates a repository-backed service without eagerly loading the complete punishment history.
fromRepositoryAsync(PunishmentRepository, PunishmentServiceOptions, AuditService) - Static method in class com.cotani.punishment.CotaniPunishments
Loads punishments asynchronously with explicit timeout and audit integration.

H

hashCode() - Method in record class com.cotani.punishment.api.Punishment
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.Punishment.Revocation
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.PunishmentCursor
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.PunishmentId
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.punishment.api.PunishmentServiceOptions
Returns a hash code value for this object.

I

id() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the id record component.
id() - Method in record class com.cotani.punishment.api.PunishmentCursor
Returns the value of the id record component.
id() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the id record component.
inMemory() - Static method in class com.cotani.punishment.CotaniPunishments
Creates an isolated in-memory service.
inMemory(AuditService) - Static method in class com.cotani.punishment.CotaniPunishments
Creates an in-memory service with optional audit integration.
isActiveAt(Instant) - Method in record class com.cotani.punishment.api.Punishment
 

L

limit() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns the value of the limit record component.
limit(int) - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 

M

MAX_REASON_LENGTH - Static variable in record class com.cotani.punishment.api.Punishment
 
migrate(Schema) - Method in class com.cotani.punishment.storage.CreatePunishmentIndexesMigration
 
migrate(Schema) - Method in class com.cotani.punishment.storage.CreatePunishmentTablesMigration
 
migrations() - Static method in class com.cotani.punishment.CotaniPunishments
Returns the migrations required by the SQL repository.
migrations() - Static method in class com.cotani.punishment.storage.StoragePunishmentRepository
 
MUTE - Enum constant in enum class com.cotani.punishment.api.PunishmentType
 

N

NOT_STARTED - Enum constant in enum class com.cotani.punishment.api.PunishmentStatus
 
now(UUID, AuditActor, PunishmentType, String, Optional) - Static method in record class com.cotani.punishment.api.PunishmentRequest
 

P

Punishment - Record Class in com.cotani.punishment.api
Immutable record of a punishment and its optional revocation.
Punishment(PunishmentId, UUID, AuditActor, PunishmentType, String, Instant, Optional, Optional) - Constructor for record class com.cotani.punishment.api.Punishment
Creates an instance of a Punishment record class.
Punishment.Revocation - Record Class in com.cotani.punishment.api
Immutable explanation of a revocation.
PunishmentConflictException - Exception Class in com.cotani.punishment.api
Signals reuse of an idempotency ID with different punishment data.
PunishmentConflictException(PunishmentId) - Constructor for exception class com.cotani.punishment.api.PunishmentConflictException
 
PunishmentCursor - Record Class in com.cotani.punishment.api
Stable cursor for descending punishment history pagination.
PunishmentCursor(Instant, PunishmentId) - Constructor for record class com.cotani.punishment.api.PunishmentCursor
Creates an instance of a PunishmentCursor record class.
PunishmentId - Record Class in com.cotani.punishment.api
Stable identifier used to make punishment writes idempotent.
PunishmentId(UUID) - Constructor for record class com.cotani.punishment.api.PunishmentId
Creates an instance of a PunishmentId record class.
PunishmentQuery - Record Class in com.cotani.punishment.api
Immutable bounded query for punishment history or effective state with cursor pagination.
PunishmentQuery(Optional, Optional, Optional, Optional, int) - Constructor for record class com.cotani.punishment.api.PunishmentQuery
Creates an instance of a PunishmentQuery record class.
PunishmentQuery.Builder - Class in com.cotani.punishment.api
 
PunishmentRepository - Interface in com.cotani.punishment.api
Asynchronous persistence boundary for immutable punishments.
PunishmentRequest - Record Class in com.cotani.punishment.api
Immutable idempotent request for creating one punishment.
PunishmentRequest(PunishmentId, UUID, AuditActor, PunishmentType, String, Instant, Optional) - Constructor for record class com.cotani.punishment.api.PunishmentRequest
Creates an instance of a PunishmentRequest record class.
PunishmentService - Interface in com.cotani.punishment.api
Applies, queries and revokes immutable punishments without retaining Bukkit objects.
PunishmentServiceOptions - Record Class in com.cotani.punishment.api
Options for repository-backed punishment operations.
PunishmentServiceOptions(Duration) - Constructor for record class com.cotani.punishment.api.PunishmentServiceOptions
Creates an instance of a PunishmentServiceOptions record class.
PunishmentStatus - Enum Class in com.cotani.punishment.api
Effective state of a punishment at a point in time, including its pre-creation state.
PunishmentType - Enum Class in com.cotani.punishment.api
Persistent punishment categories supported by Cotani.

Q

queryAsync(PunishmentQuery) - Method in interface com.cotani.punishment.api.PunishmentRepository
Queries one bounded page; filters and pagination must be applied by the repository.
queryAsync(PunishmentQuery) - Method in interface com.cotani.punishment.api.PunishmentService
Returns bounded history or active punishments according to the query.
queryAsync(PunishmentQuery) - Method in class com.cotani.punishment.storage.StoragePunishmentRepository
 

R

random() - Static method in record class com.cotani.punishment.api.PunishmentId
 
reason() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the reason record component.
reason() - Method in record class com.cotani.punishment.api.Punishment.Revocation
Returns the value of the reason record component.
reason() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the reason record component.
repositoryTimeout() - Method in record class com.cotani.punishment.api.PunishmentServiceOptions
Returns the value of the repositoryTimeout record component.
revocation() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the revocation record component.
Revocation(AuditActor, String, Instant) - Constructor for record class com.cotani.punishment.api.Punishment.Revocation
Creates an instance of a Revocation record class.
revoke(Punishment.Revocation) - Method in record class com.cotani.punishment.api.Punishment
 
revokeAsync(PunishmentId, Punishment.Revocation) - Method in interface com.cotani.punishment.api.PunishmentService
Revokes a punishment; a missing ID returns Optional.empty().
REVOKED - Enum constant in enum class com.cotani.punishment.api.PunishmentStatus
 
revokedAt() - Method in record class com.cotani.punishment.api.Punishment.Revocation
Returns the value of the revokedAt record component.

S

saveAsync(Punishment) - Method in interface com.cotani.punishment.api.PunishmentRepository
Persists an immutable punishment idempotently and rejects conflicting data for the same ID.
saveAsync(Punishment) - Method in class com.cotani.punishment.storage.StoragePunishmentRepository
 
statusAt(Instant) - Method in record class com.cotani.punishment.api.Punishment
 
storageAsync(CotaniStorage) - Static method in class com.cotani.punishment.CotaniPunishments
Loads punishments asynchronously from Cotani Storage.
storageAsync(CotaniStorage, AuditService) - Static method in class com.cotani.punishment.CotaniPunishments
Loads punishments from Cotani Storage and records successful mutations in the audit trail.
StoragePunishmentRepository - Class in com.cotani.punishment.storage
SQL-backed punishment repository using Cotani Storage.
StoragePunishmentRepository(CotaniStorage) - Constructor for class com.cotani.punishment.storage.StoragePunishmentRepository
 

T

targetId() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the targetId record component.
targetId() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns the value of the targetId record component.
targetId() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the targetId record component.
targetId(UUID) - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 
toPunishment() - Method in record class com.cotani.punishment.api.PunishmentRequest
 
toString() - Method in record class com.cotani.punishment.api.Punishment.Revocation
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.Punishment
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.PunishmentCursor
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.PunishmentId
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns a string representation of this record class.
toString() - Method in record class com.cotani.punishment.api.PunishmentServiceOptions
Returns a string representation of this record class.
type() - Method in record class com.cotani.punishment.api.Punishment
Returns the value of the type record component.
type() - Method in record class com.cotani.punishment.api.PunishmentQuery
Returns the value of the type record component.
type() - Method in record class com.cotani.punishment.api.PunishmentRequest
Returns the value of the type record component.
type(PunishmentType) - Method in class com.cotani.punishment.api.PunishmentQuery.Builder
 

V

value() - Method in record class com.cotani.punishment.api.PunishmentId
Returns the value of the value record component.
valueOf(String) - Static method in enum class com.cotani.punishment.api.PunishmentStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.cotani.punishment.api.PunishmentType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.cotani.punishment.api.PunishmentStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.cotani.punishment.api.PunishmentType
Returns an array containing the constants of this enum class, in the order they are declared.
version() - Method in class com.cotani.punishment.storage.CreatePunishmentIndexesMigration
 
version() - Method in class com.cotani.punishment.storage.CreatePunishmentTablesMigration
 

W

WARN - Enum constant in enum class com.cotani.punishment.api.PunishmentType
 
withTimeout(CompletionStage) - Method in record class com.cotani.punishment.api.PunishmentServiceOptions
 
A B C D E F H I L M N P Q R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form