Index
All Classes and Interfaces|All Packages|Serialized Form
C
- com.cotani.queue - package com.cotani.queue
- com.cotani.queue.api - package com.cotani.queue.api
- com.cotani.queue.api.event - package com.cotani.queue.api.event
- CotaniQueues - Class in com.cotani.queue
-
Factories for the
cotani-queuemodule. - createdAt() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns the value of the
createdAtrecord component.
D
- defaults() - Static method in record class com.cotani.queue.api.QueueEntryOptions
- defaults() - Static method in record class com.cotani.queue.api.QueueServiceOptions
- dequeueAsync(UUID) - Method in interface com.cotani.queue.api.QueueService
-
Removes a ticket, returning empty when it no longer exists or has expired.
E
- empty() - Static method in record class com.cotani.queue.api.QueueSnapshot
- enqueueAsync(QueueId, UUID, QueueEntryOptions) - Method in interface com.cotani.queue.api.QueueService
-
Enqueues one player with a priority and expiration lifetime.
- enqueuedAt() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
enqueuedAtrecord component. - entriesAsync(QueueId) - Method in interface com.cotani.queue.api.QueueService
-
Returns active tickets in priority/FIFO order for one queue after earlier accepted operations complete.
- equals(Object) - Method in record class com.cotani.queue.api.event.QueueMatchedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueEntryOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueId
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueMatch
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.queue.api.QueueTicket
-
Indicates whether some other object is "equal to" this one.
- eventTimeout() - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Returns the value of the
eventTimeoutrecord component. - expiresAt() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
expiresAtrecord component.
F
- findByPlayerAsync(UUID) - Method in interface com.cotani.queue.api.QueueService
-
Returns the active ticket for a player, if any, after earlier accepted operations complete.
- fromRepositoryAsync(QueueRepository) - Static method in class com.cotani.queue.CotaniQueues
-
Restores queue state asynchronously from a repository.
- fromRepositoryAsync(QueueRepository, EventBus, QueueServiceOptions) - Static method in class com.cotani.queue.CotaniQueues
-
Restores queue state with explicit options and optional event publication.
H
- hashCode() - Method in record class com.cotani.queue.api.event.QueueMatchedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueEntryOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueId
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns a hash code value for this object.
I
- inMemory() - Static method in class com.cotani.queue.CotaniQueues
-
Creates an isolated in-memory queue service.
- inMemory(EventBus) - Static method in class com.cotani.queue.CotaniQueues
-
Creates an in-memory queue service with optional event publication.
- isExpiredAt(Instant) - Method in record class com.cotani.queue.api.QueueTicket
L
- lifetime() - Method in record class com.cotani.queue.api.QueueEntryOptions
-
Returns the value of the
lifetimerecord component. - loadAsync() - Method in interface com.cotani.queue.api.QueueRepository
-
Loads the current immutable queue snapshot without blocking the caller.
M
- match() - Method in record class com.cotani.queue.api.event.QueueMatchedEvent
-
Returns the value of the
matchrecord component. - matchAsync(QueueId, int) - Method in interface com.cotani.queue.api.QueueService
-
Atomically removes the first
requiredPlayersactive tickets and returns a match. - matchId() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns the value of the
matchIdrecord component. - maximumEntriesPerQueue() - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Returns the value of the
maximumEntriesPerQueuerecord component.
N
- nextSequence() - Method in record class com.cotani.queue.api.QueueSnapshot
-
Returns the value of the
nextSequencerecord component.
O
- of(String) - Static method in record class com.cotani.queue.api.QueueId
P
- playerId() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
playerIdrecord component. - priority() - Method in record class com.cotani.queue.api.QueueEntryOptions
-
Returns the value of the
priorityrecord component. - priority() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
priorityrecord component.
Q
- QueueConflictException - Exception Class in com.cotani.queue.api
-
Raised when a player or ticket conflicts with current queue state.
- QueueConflictException(String) - Constructor for exception class com.cotani.queue.api.QueueConflictException
- QueueEntryOptions - Record Class in com.cotani.queue.api
-
Options captured when a player enters a queue.
- QueueEntryOptions(int, Duration) - Constructor for record class com.cotani.queue.api.QueueEntryOptions
-
Creates an instance of a
QueueEntryOptionsrecord class. - QueueEvent - Interface in com.cotani.queue.api.event
-
Marker for immutable queue domain events.
- QueueException - Exception Class in com.cotani.queue.api
-
Base exception for expected queue-domain failures.
- QueueException(String) - Constructor for exception class com.cotani.queue.api.QueueException
- QueueFullException - Exception Class in com.cotani.queue.api
-
Raised when a queue reached its configured capacity.
- QueueFullException(QueueId) - Constructor for exception class com.cotani.queue.api.QueueFullException
- queueId() - Method in exception class com.cotani.queue.api.QueueFullException
- queueId() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns the value of the
queueIdrecord component. - queueId() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
queueIdrecord component. - QueueId - Record Class in com.cotani.queue.api
-
Canonical identifier for a matchmaking queue.
- QueueId(String) - Constructor for record class com.cotani.queue.api.QueueId
-
Creates an instance of a
QueueIdrecord class. - QueueMatch - Record Class in com.cotani.queue.api
-
Immutable group atomically removed from a queue for matchmaking.
- QueueMatch(UUID, QueueId, List, Instant) - Constructor for record class com.cotani.queue.api.QueueMatch
-
Creates an instance of a
QueueMatchrecord class. - QueueMatchedEvent - Record Class in com.cotani.queue.api.event
-
Published after tickets are atomically removed as a matchmaking group.
- QueueMatchedEvent(QueueMatch) - Constructor for record class com.cotani.queue.api.event.QueueMatchedEvent
-
Creates an instance of a
QueueMatchedEventrecord class. - QueueRepository - Interface in com.cotani.queue.api
-
Asynchronous persistence boundary for queue state.
- QueueService - Interface in com.cotani.queue.api
-
Asynchronous priority queue and atomic matchmaking use cases.
- QueueServiceOptions - Record Class in com.cotani.queue.api
-
Operational limits and timeouts for a queue service.
- QueueServiceOptions(int, Duration) - Constructor for record class com.cotani.queue.api.QueueServiceOptions
- QueueServiceOptions(int, Duration, Duration) - Constructor for record class com.cotani.queue.api.QueueServiceOptions
-
Creates an instance of a
QueueServiceOptionsrecord class. - QueueSnapshot - Record Class in com.cotani.queue.api
-
Immutable repository state for all queues managed by one service.
- QueueSnapshot(long, long, List) - Constructor for record class com.cotani.queue.api.QueueSnapshot
-
Creates an instance of a
QueueSnapshotrecord class. - QueueSnapshot(List) - Constructor for record class com.cotani.queue.api.QueueSnapshot
- QueueTicket - Record Class in com.cotani.queue.api
-
Immutable ticket representing one player waiting in one queue.
- QueueTicket(UUID, QueueId, UUID, int, Instant, Instant, long) - Constructor for record class com.cotani.queue.api.QueueTicket
-
Creates an instance of a
QueueTicketrecord class. - QueueTicketDequeuedEvent - Record Class in com.cotani.queue.api.event
-
Published after a ticket is removed from a queue without matching.
- QueueTicketDequeuedEvent(QueueTicket) - Constructor for record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
-
Creates an instance of a
QueueTicketDequeuedEventrecord class. - QueueTicketEnqueuedEvent - Record Class in com.cotani.queue.api.event
-
Published after a ticket is committed to a queue.
- QueueTicketEnqueuedEvent(QueueTicket) - Constructor for record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
-
Creates an instance of a
QueueTicketEnqueuedEventrecord class.
R
- repositoryTimeout() - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Returns the value of the
repositoryTimeoutrecord component. - revision() - Method in record class com.cotani.queue.api.QueueSnapshot
-
Returns the value of the
revisionrecord component.
S
- saveAsync(QueueSnapshot, long) - Method in interface com.cotani.queue.api.QueueRepository
-
Atomically persists a snapshot only when the stored revision equals
expectedRevision. - sequence() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
sequencerecord component.
T
- ticket() - Method in record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
-
Returns the value of the
ticketrecord component. - ticket() - Method in record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
-
Returns the value of the
ticketrecord component. - ticketId() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns the value of the
ticketIdrecord component. - tickets() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns the value of the
ticketsrecord component. - tickets() - Method in record class com.cotani.queue.api.QueueSnapshot
-
Returns the value of the
ticketsrecord component. - toString() - Method in record class com.cotani.queue.api.event.QueueMatchedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueEntryOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueId
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueMatch
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.queue.api.QueueTicket
-
Returns a string representation of this record class.
V
- value() - Method in record class com.cotani.queue.api.QueueId
-
Returns the value of the
valuerecord component.
W
- withEventTimeout(Duration) - Method in record class com.cotani.queue.api.QueueServiceOptions
- withEventTimeout(CompletionStage) - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Applies the event deadline without requiring the supplied stage to be a
CompletableFuture. - withLifetime(Duration) - Method in record class com.cotani.queue.api.QueueEntryOptions
- withMaximumEntriesPerQueue(int) - Method in record class com.cotani.queue.api.QueueServiceOptions
- withPriority(int) - Method in record class com.cotani.queue.api.QueueEntryOptions
- withRepositoryTimeout(Duration) - Method in record class com.cotani.queue.api.QueueServiceOptions
- withRepositoryTimeout(CompletionStage) - Method in record class com.cotani.queue.api.QueueServiceOptions
-
Applies the repository deadline without requiring the supplied stage to be a
CompletableFuture.
All Classes and Interfaces|All Packages|Serialized Form