Index
All Classes and Interfaces|All Packages|Serialized Form
A
- acceptInviteAsync(UUID, PartyId) - Method in interface com.cotani.party.api.PartyService
-
Accepts an active invitation and adds the invitee to the party.
- actorId() - Method in record class com.cotani.party.api.event.PartyDisbandedEvent
-
Returns the value of the
actorIdrecord component. - actorId() - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Returns the value of the
actorIdrecord component. - actorId() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns the value of the
actorIdrecord component. - addMember(UUID, Instant) - Method in record class com.cotani.party.api.Party
C
- com.cotani.party - package com.cotani.party
- com.cotani.party.api - package com.cotani.party.api
- com.cotani.party.api.event - package com.cotani.party.api.event
- contains(UUID) - Method in record class com.cotani.party.api.Party
- CotaniParties - Class in com.cotani.party
-
Factories for the
cotani-partymodule. - create(PartyId, UUID, PartyOptions, Instant) - Static method in record class com.cotani.party.api.Party
- createAsync(Party) - Method in interface com.cotani.party.api.PartyRepository
-
Creates one party, rejecting an existing party with the same id.
- createAsync(UUID, PartyOptions) - Method in interface com.cotani.party.api.PartyService
-
Creates a party with the supplied leader and size policy.
- createdAt() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
createdAtrecord component.
D
- declineInviteAsync(UUID, PartyId) - Method in interface com.cotani.party.api.PartyService
-
Declines an active invitation.
- defaults() - Static method in record class com.cotani.party.api.PartyOptions
- defaults() - Static method in record class com.cotani.party.api.PartyServiceOptions
- deleteAsync(PartyId, long) - Method in interface com.cotani.party.api.PartyRepository
-
Deletes one party only when its currently persisted revision equals
expectedRevision. - disbandAsync(PartyId, UUID) - Method in interface com.cotani.party.api.PartyService
-
Permanently disbands a party through its leader.
E
- empty() - Static method in record class com.cotani.party.api.PartySnapshot
- equals(Object) - Method in record class com.cotani.party.api.event.PartyCreatedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyDisbandedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.Party
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartyId
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartyInvite
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartyMember
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartyOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartyServiceOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.party.api.PartySnapshot
-
Indicates whether some other object is "equal to" this one.
- eventTimeout() - Method in record class com.cotani.party.api.PartyServiceOptions
-
Returns the value of the
eventTimeoutrecord component. - expiresAt() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns the value of the
expiresAtrecord component. - expiresAt() - Method in record class com.cotani.party.api.PartyInvite
-
Returns the value of the
expiresAtrecord component.
F
- findAsync(PartyId) - Method in interface com.cotani.party.api.PartyService
-
Finds a party without waiting behind pending mutations.
- findByMemberAsync(UUID) - Method in interface com.cotani.party.api.PartyService
-
Finds the party containing one player without waiting behind pending mutations.
- fromRepositoryAsync(PartyRepository) - Static method in class com.cotani.party.CotaniParties
-
Restores parties asynchronously from a repository.
- fromRepositoryAsync(PartyRepository, EventBus, PartyServiceOptions) - Static method in class com.cotani.party.CotaniParties
-
Restores parties asynchronously with event publication and explicit repository options.
H
- hashCode() - Method in record class com.cotani.party.api.event.PartyCreatedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyDisbandedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.Party
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartyId
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartyInvite
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartyMember
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartyOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartyServiceOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.party.api.PartySnapshot
-
Returns a hash code value for this object.
I
- id() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
idrecord component. - inMemory() - Static method in class com.cotani.party.CotaniParties
-
Creates an isolated in-memory party service.
- inMemory(EventBus) - Static method in class com.cotani.party.CotaniParties
-
Creates an in-memory service with optional domain-event publication.
- inviteAsync(PartyId, UUID, UUID, Duration) - Method in interface com.cotani.party.api.PartyService
-
Creates an expiring invitation from a manager to a player.
- inviteeId() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns the value of the
inviteeIdrecord component. - inviteeId() - Method in record class com.cotani.party.api.PartyInvite
-
Returns the value of the
inviteeIdrecord component. - inviterId() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns the value of the
inviterIdrecord component. - inviterId() - Method in record class com.cotani.party.api.PartyInvite
-
Returns the value of the
inviterIdrecord component. - invitesAsync(UUID) - Method in interface com.cotani.party.api.PartyService
-
Returns the active invitations for one player.
- isExpiredAt(Instant) - Method in record class com.cotani.party.api.PartyInvite
- isFull() - Method in record class com.cotani.party.api.Party
J
- joinedAt() - Method in record class com.cotani.party.api.PartyMember
-
Returns the value of the
joinedAtrecord component.
K
- kickAsync(PartyId, UUID, UUID) - Method in interface com.cotani.party.api.PartyService
-
Removes a non-leader member through a manager action.
L
- LEADER - Enum constant in enum class com.cotani.party.api.PartyRole
- leaderId() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
leaderIdrecord component. - leaveAsync(UUID) - Method in interface com.cotani.party.api.PartyService
-
Removes a member, selecting a deterministic successor when the leader leaves.
- loadAsync() - Method in interface com.cotani.party.api.PartyRepository
-
Loads the complete party snapshot asynchronously without blocking the caller.
M
- maxMembers() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
maxMembersrecord component. - maxMembers() - Method in record class com.cotani.party.api.PartyOptions
-
Returns the value of the
maxMembersrecord component. - member(UUID) - Method in record class com.cotani.party.api.Party
- MEMBER - Enum constant in enum class com.cotani.party.api.PartyRole
- memberId() - Method in record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Returns the value of the
memberIdrecord component. - memberId() - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Returns the value of the
memberIdrecord component. - memberId() - Method in record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Returns the value of the
memberIdrecord component. - memberId() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns the value of the
memberIdrecord component. - members() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
membersrecord component.
N
- newLeaderId() - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Returns the value of the
newLeaderIdrecord component.
O
P
- parties() - Method in record class com.cotani.party.api.PartySnapshot
-
Returns the value of the
partiesrecord component. - party() - Method in record class com.cotani.party.api.event.PartyCreatedEvent
-
Returns the value of the
partyrecord component. - party() - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Returns the value of the
partyrecord component. - party() - Method in record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Returns the value of the
partyrecord component. - party() - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Returns the value of the
partyrecord component. - party() - Method in record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Returns the value of the
partyrecord component. - party() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns the value of the
partyrecord component. - Party - Record Class in com.cotani.party.api
-
Immutable party aggregate.
- Party(PartyId, int, Instant, long, UUID, Set) - Constructor for record class com.cotani.party.api.Party
-
Creates an instance of a
Partyrecord class. - PartyAccessDeniedException - Exception Class in com.cotani.party.api
-
Raised when a player cannot perform an administrative party operation.
- PartyAccessDeniedException(UUID, PartyId) - Constructor for exception class com.cotani.party.api.PartyAccessDeniedException
- PartyConflictException - Exception Class in com.cotani.party.api
-
Raised when persistence detects a conflicting party revision.
- PartyConflictException(PartyId) - Constructor for exception class com.cotani.party.api.PartyConflictException
- PartyCreatedEvent - Record Class in com.cotani.party.api.event
-
Published after a party is persisted and created.
- PartyCreatedEvent(Party) - Constructor for record class com.cotani.party.api.event.PartyCreatedEvent
-
Creates an instance of a
PartyCreatedEventrecord class. - PartyDisbandedEvent - Record Class in com.cotani.party.api.event
-
Published after a party is deleted.
- PartyDisbandedEvent(PartyId, UUID) - Constructor for record class com.cotani.party.api.event.PartyDisbandedEvent
-
Creates an instance of a
PartyDisbandedEventrecord class. - PartyEvent - Interface in com.cotani.party.api.event
-
Marker for all party domain events.
- PartyException - Exception Class in com.cotani.party.api
-
Base exception for expected party-domain failures.
- PartyException(String) - Constructor for exception class com.cotani.party.api.PartyException
- partyId() - Method in record class com.cotani.party.api.event.PartyDisbandedEvent
-
Returns the value of the
partyIdrecord component. - partyId() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns the value of the
partyIdrecord component. - partyId() - Method in record class com.cotani.party.api.PartyInvite
-
Returns the value of the
partyIdrecord component. - PartyId - Record Class in com.cotani.party.api
-
Stable identifier for a party.
- PartyId(UUID) - Constructor for record class com.cotani.party.api.PartyId
-
Creates an instance of a
PartyIdrecord class. - PartyInvite - Record Class in com.cotani.party.api
-
Immutable invitation to join a party.
- PartyInvite(PartyId, UUID, UUID, Instant) - Constructor for record class com.cotani.party.api.PartyInvite
-
Creates an instance of a
PartyInviterecord class. - PartyInviteException - Exception Class in com.cotani.party.api
-
Raised when an invitation cannot be created or consumed.
- PartyInviteException(UUID, PartyId, String) - Constructor for exception class com.cotani.party.api.PartyInviteException
- PartyLeadershipTransferredEvent - Record Class in com.cotani.party.api.event
-
Published after leadership is transferred.
- PartyLeadershipTransferredEvent(Party, UUID, UUID) - Constructor for record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Creates an instance of a
PartyLeadershipTransferredEventrecord class. - PartyMember - Record Class in com.cotani.party.api
-
Immutable membership entry in a party.
- PartyMember(UUID, PartyRole, Instant) - Constructor for record class com.cotani.party.api.PartyMember
-
Creates an instance of a
PartyMemberrecord class. - PartyMemberInvitedEvent - Record Class in com.cotani.party.api.event
-
Published after an invitation is registered.
- PartyMemberInvitedEvent(PartyId, UUID, UUID, Instant) - Constructor for record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Creates an instance of a
PartyMemberInvitedEventrecord class. - PartyMemberJoinedEvent - Record Class in com.cotani.party.api.event
-
Published after an invitation is accepted.
- PartyMemberJoinedEvent(Party, UUID) - Constructor for record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Creates an instance of a
PartyMemberJoinedEventrecord class. - PartyMemberKickedEvent - Record Class in com.cotani.party.api.event
-
Published after a member is removed by an authorized party member.
- PartyMemberKickedEvent(Party, UUID, UUID) - Constructor for record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Creates an instance of a
PartyMemberKickedEventrecord class. - PartyMemberLeftEvent - Record Class in com.cotani.party.api.event
-
Published after a member leaves a party.
- PartyMemberLeftEvent(Party, UUID) - Constructor for record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Creates an instance of a
PartyMemberLeftEventrecord class. - PartyMembershipException - Exception Class in com.cotani.party.api
-
Raised when a party membership invariant is violated.
- PartyMembershipException(UUID, String) - Constructor for exception class com.cotani.party.api.PartyMembershipException
- PartyNotFoundException - Exception Class in com.cotani.party.api
-
Raised when a requested party does not exist.
- PartyNotFoundException(PartyId) - Constructor for exception class com.cotani.party.api.PartyNotFoundException
- PartyOptions - Record Class in com.cotani.party.api
-
Creation options for a party.
- PartyOptions(int) - Constructor for record class com.cotani.party.api.PartyOptions
-
Creates an instance of a
PartyOptionsrecord class. - PartyRepository - Interface in com.cotani.party.api
-
Persistence SPI for party aggregates.
- PartyRole - Enum Class in com.cotani.party.api
-
Roles available to party members.
- PartyRoleChangedEvent - Record Class in com.cotani.party.api.event
-
Published after a member role changes.
- PartyRoleChangedEvent(Party, UUID, UUID, PartyRole) - Constructor for record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Creates an instance of a
PartyRoleChangedEventrecord class. - PartyService - Interface in com.cotani.party.api
-
Asynchronous party use cases using immutable player identifiers.
- PartyServiceOptions - Record Class in com.cotani.party.api
-
Operational options for repository-backed party services.
- PartyServiceOptions(Duration) - Constructor for record class com.cotani.party.api.PartyServiceOptions
- PartyServiceOptions(Duration, Duration) - Constructor for record class com.cotani.party.api.PartyServiceOptions
-
Creates an instance of a
PartyServiceOptionsrecord class. - PartySnapshot - Record Class in com.cotani.party.api
-
Immutable state loaded by a party repository.
- PartySnapshot(List) - Constructor for record class com.cotani.party.api.PartySnapshot
-
Creates an instance of a
PartySnapshotrecord class. - playerId() - Method in record class com.cotani.party.api.PartyMember
-
Returns the value of the
playerIdrecord component. - previousLeaderId() - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Returns the value of the
previousLeaderIdrecord component.
R
- random() - Static method in record class com.cotani.party.api.PartyId
- removeLeaderAndTransfer(UUID, UUID) - Method in record class com.cotani.party.api.Party
- removeMember(UUID) - Method in record class com.cotani.party.api.Party
- repositoryTimeout() - Method in record class com.cotani.party.api.PartyServiceOptions
-
Returns the value of the
repositoryTimeoutrecord component. - revision() - Method in record class com.cotani.party.api.Party
-
Returns the value of the
revisionrecord component. - role() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns the value of the
rolerecord component. - role() - Method in record class com.cotani.party.api.PartyMember
-
Returns the value of the
rolerecord component.
S
- setRoleAsync(PartyId, UUID, UUID, PartyRole) - Method in interface com.cotani.party.api.PartyService
-
Changes a non-leader member's role.
T
- toString() - Method in record class com.cotani.party.api.event.PartyCreatedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyDisbandedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyLeadershipTransferredEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyMemberInvitedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyMemberJoinedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyMemberKickedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyMemberLeftEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.event.PartyRoleChangedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.Party
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartyId
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartyInvite
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartyMember
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartyOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartyServiceOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.party.api.PartySnapshot
-
Returns a string representation of this record class.
- transferLeadership(UUID) - Method in record class com.cotani.party.api.Party
- transferLeadershipAsync(PartyId, UUID, UUID) - Method in interface com.cotani.party.api.PartyService
-
Transfers leadership to an existing member.
U
- updateAsync(PartyId, long, Party) - Method in interface com.cotani.party.api.PartyRepository
-
Replaces one party only when its currently persisted revision equals
expectedRevision.
V
- value() - Method in record class com.cotani.party.api.PartyId
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class com.cotani.party.api.PartyRole
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.party.api.PartyRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withEventTimeout(Duration) - Method in record class com.cotani.party.api.PartyServiceOptions
- withEventTimeout(CompletionStage) - Method in record class com.cotani.party.api.PartyServiceOptions
- withMemberRole(UUID, PartyRole) - Method in record class com.cotani.party.api.Party
- withRepositoryTimeout(Duration) - Method in record class com.cotani.party.api.PartyServiceOptions
- withRepositoryTimeout(CompletionStage) - Method in record class com.cotani.party.api.PartyServiceOptions
All Classes and Interfaces|All Packages|Serialized Form