Index

A B C D E F H I L O R S T U W 
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 acceptedBy record component.
acceptRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
Accepts a request addressed to targetId from requesterId.
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 block record component.
block() - Method in record class com.cotani.friend.api.event.FriendUnblockedEvent
Returns the value of the block record 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 blockedAt record component.
blockedId() - Method in record class com.cotani.friend.api.FriendBlock
Returns the value of the blockedId record component.
blockerId() - Method in record class com.cotani.friend.api.FriendBlock
Returns the value of the blockerId record component.
blocks() - Method in record class com.cotani.friend.api.FriendSnapshot
Returns the value of the blocks record 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 requesterId to targetId.
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-friend module.
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 createdAt record component.

D

declinedBy() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
Returns the value of the declinedBy record component.
declineRequestAsync(UUID, UUID) - Method in interface com.cotani.friend.api.FriendService
Declines a request addressed to targetId from requesterId.
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 eventTimeout record 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 firstPlayerId record 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 FriendBlock record 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 FriendBlockedEvent record 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 FriendRequest record 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 FriendRequestAcceptedEvent record 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 FriendRequestCancelledEvent record 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 FriendRequestDeclinedEvent record 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 FriendRequestSentEvent record 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 FriendServiceOptions record class.
friendship() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
Returns the value of the friendship record component.
friendship() - Method in record class com.cotani.friend.api.event.FriendshipRemovedEvent
Returns the value of the friendship record 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 Friendship record 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 FriendshipRemovedEvent record class.
friendships() - Method in record class com.cotani.friend.api.FriendSnapshot
Returns the value of the friendships record 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 FriendSnapshot record 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 FriendUnblockedEvent record 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 removedBy record 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 repositoryTimeout record component.
request() - Method in record class com.cotani.friend.api.event.FriendRequestSentEvent
Returns the value of the request record component.
requestedAt() - Method in record class com.cotani.friend.api.FriendRequest
Returns the value of the requestedAt record component.
requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestAcceptedEvent
Returns the value of the requesterId record component.
requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestCancelledEvent
Returns the value of the requesterId record component.
requesterId() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
Returns the value of the requesterId record component.
requesterId() - Method in record class com.cotani.friend.api.FriendRequest
Returns the value of the requesterId record component.
requests() - Method in record class com.cotani.friend.api.FriendSnapshot
Returns the value of the requests record component.
revision() - Method in record class com.cotani.friend.api.FriendSnapshot
Returns the value of the revision record component.

S

saveAsync(FriendSnapshot, long) - Method in interface com.cotani.friend.api.FriendRepository
Persists snapshot only when the stored revision equals expectedRevision.
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 secondPlayerId record 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 targetId record component.
targetId() - Method in record class com.cotani.friend.api.event.FriendRequestDeclinedEvent
Returns the value of the targetId record component.
targetId() - Method in record class com.cotani.friend.api.FriendRequest
Returns the value of the targetId record 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
 
A B C D E F H I L O R S T U W 
All Classes and Interfaces|All Packages|Serialized Form