Index

C D E F H I L M N O P Q R S T V W 
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-queue module.
createdAt() - Method in record class com.cotani.queue.api.QueueMatch
Returns the value of the createdAt record 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 enqueuedAt record 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 eventTimeout record component.
expiresAt() - Method in record class com.cotani.queue.api.QueueTicket
Returns the value of the expiresAt record 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 lifetime record 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 match record component.
matchAsync(QueueId, int) - Method in interface com.cotani.queue.api.QueueService
Atomically removes the first requiredPlayers active tickets and returns a match.
matchId() - Method in record class com.cotani.queue.api.QueueMatch
Returns the value of the matchId record component.
maximumEntriesPerQueue() - Method in record class com.cotani.queue.api.QueueServiceOptions
Returns the value of the maximumEntriesPerQueue record component.

N

nextSequence() - Method in record class com.cotani.queue.api.QueueSnapshot
Returns the value of the nextSequence record 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 playerId record component.
priority() - Method in record class com.cotani.queue.api.QueueEntryOptions
Returns the value of the priority record component.
priority() - Method in record class com.cotani.queue.api.QueueTicket
Returns the value of the priority record 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 QueueEntryOptions record 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 queueId record component.
queueId() - Method in record class com.cotani.queue.api.QueueTicket
Returns the value of the queueId record 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 QueueId record 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 QueueMatch record 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 QueueMatchedEvent record 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 QueueServiceOptions record 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 QueueSnapshot record 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 QueueTicket record 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 QueueTicketDequeuedEvent record 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 QueueTicketEnqueuedEvent record class.

R

repositoryTimeout() - Method in record class com.cotani.queue.api.QueueServiceOptions
Returns the value of the repositoryTimeout record component.
revision() - Method in record class com.cotani.queue.api.QueueSnapshot
Returns the value of the revision record 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 sequence record component.

T

ticket() - Method in record class com.cotani.queue.api.event.QueueTicketDequeuedEvent
Returns the value of the ticket record component.
ticket() - Method in record class com.cotani.queue.api.event.QueueTicketEnqueuedEvent
Returns the value of the ticket record component.
ticketId() - Method in record class com.cotani.queue.api.QueueTicket
Returns the value of the ticketId record component.
tickets() - Method in record class com.cotani.queue.api.QueueMatch
Returns the value of the tickets record component.
tickets() - Method in record class com.cotani.queue.api.QueueSnapshot
Returns the value of the tickets record 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 value record 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.
C D E F H I L M N O P Q R S T V W 
All Classes and Interfaces|All Packages|Serialized Form