Index
All Classes and Interfaces|All Packages|Serialized Form
A
- acceptedBy() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Returns the value of the
acceptedByrecord component. - acceptRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Accepts a request addressed to
targetIdfromrequesterId. - areFriendsAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Returns whether two players currently have a friendship.
B
- block() - Method in record class com.cotani.friend.api.event.FriendBlockedEvent
-
Returns the value of the
blockrecord component. - block() - Method in record class com.cotani.friend.api.event.FriendUnblockedEvent
-
Returns the value of the
blockrecord component. - blockAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Blocks a player and removes any friendship or pending requests between both players.
- blockedAt() - Method in record class com.cotani.friend.api.FriendBlock
-
Returns the value of the
blockedAtrecord component. - blockedId() - Method in record class com.cotani.friend.api.FriendBlock
-
Returns the value of the
blockedIdrecord component. - blockerId() - Method in record class com.cotani.friend.api.FriendBlock
-
Returns the value of the
blockerIdrecord component. - blocks() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns the value of the
blocksrecord component. - blocksAsync(UUID) - Method in interface com.cotani.friend.api.FriendService
-
Returns players blocked by the supplied player.
C
- cancelRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Cancels a request sent by
requesterIdtotargetId. - com.cotani.friend - package com.cotani.friend
- com.cotani.friend.api - package com.cotani.friend.api
- com.cotani.friend.api.event - package com.cotani.friend.api.event
- contains(UUID) - Method in record class com.cotani.friend.api.Friendship
- CotaniFriends - Class in com.cotani.friend
-
Factories for the
cotani-friendmodule. - create(UUID, UUID, Instant) - Static method in record class com.cotani.friend.api.Friendship
- createdAt() - Method in record class com.cotani.friend.api.Friendship
-
Returns the value of the
createdAtrecord component.
D
- declinedBy() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Returns the value of the
declinedByrecord component. - declineRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Declines a request addressed to
targetIdfromrequesterId. - defaults() - Static method in record class com.cotani.friend.api.FriendServiceOptions
E
- empty() - Static method in record class com.cotani.friend.api.FriendSnapshot
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendBlockedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendRequestSentEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.event.FriendUnblockedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.FriendBlock
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.FriendRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.FriendServiceOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.Friendship
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.friend.api.FriendSnapshot
-
Indicates whether some other object is "equal to" this one.
- eventTimeout() - Method in record class com.cotani.friend.api.FriendServiceOptions
-
Returns the value of the
eventTimeoutrecord component.
F
- firstPlayerId() - Method in exception class com.cotani.friend.api.FriendBlockedException
- firstPlayerId() - Method in record class com.cotani.friend.api.Friendship
-
Returns the value of the
firstPlayerIdrecord component. - firstPlayerId() - Method in exception class com.cotani.friend.api.FriendshipNotFoundException
- FriendBlock - Record Class in com.cotani.friend.api
-
Immutable directed block from one player to another.
- FriendBlock(UUID, UUID, Instant) - Constructor for record class com.cotani.friend.api.FriendBlock
-
Creates an instance of a
FriendBlockrecord class. - FriendBlockedEvent - Record Class in com.cotani.friend.api.event
-
Published after a player blocks another player.
- FriendBlockedEvent(FriendBlock) - Constructor for record class com.cotani.friend.api.event.FriendBlockedEvent
-
Creates an instance of a
FriendBlockedEventrecord class. - FriendBlockedException - Exception Class in com.cotani.friend.api
-
Raised when a friendship operation is prevented by a block.
- FriendBlockedException(UUID, UUID) - Constructor for exception class com.cotani.friend.api.FriendBlockedException
- FriendConflictException - Exception Class in com.cotani.friend.api
-
Raised when a friendship or request conflicts with the current state.
- FriendConflictException(String) - Constructor for exception class com.cotani.friend.api.FriendConflictException
- FriendEvent - Interface in com.cotani.friend.api.event
-
Marker for immutable friendship domain events.
- FriendException - Exception Class in com.cotani.friend.api
-
Base exception for expected friendship-domain failures.
- FriendException(String) - Constructor for exception class com.cotani.friend.api.FriendException
- friendOf(UUID) - Method in record class com.cotani.friend.api.Friendship
- FriendRepository - Interface in com.cotani.friend.api
-
Asynchronous persistence boundary for the complete friendship snapshot.
- FriendRequest - Record Class in com.cotani.friend.api
-
Immutable directed request from one player to another.
- FriendRequest(UUID, UUID, Instant) - Constructor for record class com.cotani.friend.api.FriendRequest
-
Creates an instance of a
FriendRequestrecord class. - FriendRequestAcceptedEvent - Record Class in com.cotani.friend.api.event
-
Published after a friend request becomes a friendship.
- FriendRequestAcceptedEvent(Friendship, UUID, UUID) - Constructor for record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Creates an instance of a
FriendRequestAcceptedEventrecord class. - FriendRequestCancelledEvent - Record Class in com.cotani.friend.api.event
-
Published after a requester cancels a pending friend request.
- FriendRequestCancelledEvent(UUID, UUID) - Constructor for record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Creates an instance of a
FriendRequestCancelledEventrecord class. - FriendRequestDeclinedEvent - Record Class in com.cotani.friend.api.event
-
Published after a pending friend request is declined.
- FriendRequestDeclinedEvent(UUID, UUID, UUID) - Constructor for record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Creates an instance of a
FriendRequestDeclinedEventrecord class. - FriendRequestException - Exception Class in com.cotani.friend.api
-
Raised when a requested friend-request transition is invalid.
- FriendRequestException(String) - Constructor for exception class com.cotani.friend.api.FriendRequestException
- FriendRequestSentEvent - Record Class in com.cotani.friend.api.event
-
Published after a friend request is committed.
- FriendRequestSentEvent(FriendRequest) - Constructor for record class com.cotani.friend.api.event.FriendRequestSentEvent
-
Creates an instance of a
FriendRequestSentEventrecord class. - friendsAsync(UUID) - Method in interface com.cotani.friend.api.FriendService
-
Returns all friendships containing the supplied player.
- FriendService - Interface in com.cotani.friend.api
-
Asynchronous friendship, request and block use cases using immutable player identifiers.
- FriendServiceOptions - Record Class in com.cotani.friend.api
-
Timeouts for repository and event-bus operations.
- FriendServiceOptions(Duration) - Constructor for record class com.cotani.friend.api.FriendServiceOptions
- FriendServiceOptions(Duration, Duration) - Constructor for record class com.cotani.friend.api.FriendServiceOptions
-
Creates an instance of a
FriendServiceOptionsrecord class. - friendship() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Returns the value of the
friendshiprecord component. - friendship() - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Returns the value of the
friendshiprecord component. - Friendship - Record Class in com.cotani.friend.api
-
Immutable bidirectional friendship stored in canonical player order.
- Friendship(UUID, UUID, Instant) - Constructor for record class com.cotani.friend.api.Friendship
-
Creates an instance of a
Friendshiprecord class. - FriendshipNotFoundException - Exception Class in com.cotani.friend.api
-
Raised when a friendship is required but does not exist.
- FriendshipNotFoundException(UUID, UUID) - Constructor for exception class com.cotani.friend.api.FriendshipNotFoundException
- FriendshipRemovedEvent - Record Class in com.cotani.friend.api.event
-
Published after a friendship is removed.
- FriendshipRemovedEvent(Friendship, UUID) - Constructor for record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Creates an instance of a
FriendshipRemovedEventrecord class. - friendships() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns the value of the
friendshipsrecord component. - FriendSnapshot - Record Class in com.cotani.friend.api
-
Immutable repository state for the complete friendship domain.
- FriendSnapshot(long, List, List, List) - Constructor for record class com.cotani.friend.api.FriendSnapshot
-
Creates an instance of a
FriendSnapshotrecord class. - FriendSnapshot(List, List, List) - Constructor for record class com.cotani.friend.api.FriendSnapshot
- FriendUnblockedEvent - Record Class in com.cotani.friend.api.event
-
Published after a player removes one of their blocks.
- FriendUnblockedEvent(FriendBlock) - Constructor for record class com.cotani.friend.api.event.FriendUnblockedEvent
-
Creates an instance of a
FriendUnblockedEventrecord class. - fromRepositoryAsync(FriendRepository) - Static method in class com.cotani.friend.CotaniFriends
-
Restores a friendship service asynchronously from a repository.
- fromRepositoryAsync(FriendRepository, EventBus, FriendServiceOptions) - Static method in class com.cotani.friend.CotaniFriends
-
Restores a friendship service with explicit options and optional event publication.
H
- hashCode() - Method in record class com.cotani.friend.api.event.FriendBlockedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendRequestSentEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.event.FriendUnblockedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.FriendBlock
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.FriendRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.FriendServiceOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.Friendship
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns a hash code value for this object.
I
- incomingRequestsAsync(UUID) - Method in interface com.cotani.friend.api.FriendService
-
Returns requests received by the supplied player.
- inMemory() - Static method in class com.cotani.friend.CotaniFriends
-
Creates an isolated in-memory friendship service.
- inMemory(EventBus) - Static method in class com.cotani.friend.CotaniFriends
-
Creates an in-memory friendship service with optional event publication.
L
- loadAsync() - Method in interface com.cotani.friend.api.FriendRepository
-
Loads the current immutable snapshot without blocking the caller.
O
- outgoingRequestsAsync(UUID) - Method in interface com.cotani.friend.api.FriendService
-
Returns requests sent by the supplied player.
R
- removedBy() - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Returns the value of the
removedByrecord component. - removeFriendAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Removes an existing friendship.
- repositoryTimeout() - Method in record class com.cotani.friend.api.FriendServiceOptions
-
Returns the value of the
repositoryTimeoutrecord component. - request() - Method in record class com.cotani.friend.api.event.FriendRequestSentEvent
-
Returns the value of the
requestrecord component. - requestedAt() - Method in record class com.cotani.friend.api.FriendRequest
-
Returns the value of the
requestedAtrecord component. - requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Returns the value of the
requesterIdrecord component. - requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Returns the value of the
requesterIdrecord component. - requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Returns the value of the
requesterIdrecord component. - requesterId() - Method in record class com.cotani.friend.api.FriendRequest
-
Returns the value of the
requesterIdrecord component. - requests() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns the value of the
requestsrecord component. - revision() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns the value of the
revisionrecord component.
S
- saveAsync(FriendSnapshot, long) - Method in interface com.cotani.friend.api.FriendRepository
-
Persists
snapshotonly when the stored revision equalsexpectedRevision. - secondPlayerId() - Method in exception class com.cotani.friend.api.FriendBlockedException
- secondPlayerId() - Method in record class com.cotani.friend.api.Friendship
-
Returns the value of the
secondPlayerIdrecord component. - secondPlayerId() - Method in exception class com.cotani.friend.api.FriendshipNotFoundException
- sendRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Sends a directed request unless the players are already connected or blocked.
T
- targetId() - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Returns the value of the
targetIdrecord component. - targetId() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Returns the value of the
targetIdrecord component. - targetId() - Method in record class com.cotani.friend.api.FriendRequest
-
Returns the value of the
targetIdrecord component. - toString() - Method in record class com.cotani.friend.api.event.FriendBlockedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendRequestSentEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.event.FriendUnblockedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.FriendBlock
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.FriendRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.FriendServiceOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.Friendship
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.friend.api.FriendSnapshot
-
Returns a string representation of this record class.
U
- unblockAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
-
Removes a block created by
blockerId.
W
- withEventTimeout(Duration) - Method in record class com.cotani.friend.api.FriendServiceOptions
- withEventTimeout(CompletionStage) - Method in record class com.cotani.friend.api.FriendServiceOptions
- withRepositoryTimeout(Duration) - Method in record class com.cotani.friend.api.FriendServiceOptions
- withRepositoryTimeout(CompletionStage) - Method in record class com.cotani.friend.api.FriendServiceOptions
All Classes and Interfaces|All Packages|Serialized Form