Uses of Class
nl.andrewl.concord_server.client.ClientThread
Packages that use ClientThread
Package
Description
-
Uses of ClientThread in nl.andrewl.concord_server.channel
Fields in nl.andrewl.concord_server.channel with type parameters of type ClientThreadModifier and TypeFieldDescriptionprivate final Set<ClientThread>
Channel.connectedClients
The set of clients that are connected to this channel.Methods in nl.andrewl.concord_server.channel with parameters of type ClientThreadModifier and TypeMethodDescriptionvoid
Channel.addClient
(ClientThread clientThread) Adds a client to this channel.void
ChannelManager.moveToChannel
(ClientThread client, Channel channel) Moves a client to the given channel.void
Channel.removeClient
(ClientThread clientThread) Removes a client from this channel. -
Uses of ClientThread in nl.andrewl.concord_server.client
Fields in nl.andrewl.concord_server.client with type parameters of type ClientThreadModifier and TypeFieldDescriptionprivate final Map<UUID,
ClientThread> ClientManager.clients
The set of connected clients, mapped by their id.private final Map<UUID,
ClientThread> ClientManager.pendingClients
The set of connected pending clients, mapped by their id.Methods in nl.andrewl.concord_server.client that return types with arguments of type ClientThreadModifier and TypeMethodDescriptionClientManager.getClientById
(UUID id) Tries to find a connected client with the given id.ClientManager.getPendingClientById
(UUID id) Tries to find a pending client with the given id.Methods in nl.andrewl.concord_server.client with parameters of type ClientThreadModifier and TypeMethodDescriptionvoid
ClientManager.handleLogin
(nl.andrewl.concord_core.msg.types.client_setup.ClientLogin login, ClientThread clientThread) Handles an attempt by a new client to login as an existing user to the server.void
ClientManager.handleRegistration
(nl.andrewl.concord_core.msg.types.client_setup.ClientRegistration registration, ClientThread clientThread) Handles an attempt by a new client to register as a user for this server.void
ClientManager.handleSessionResume
(nl.andrewl.concord_core.msg.types.client_setup.ClientSessionResume sessionResume, ClientThread clientThread) Handles an attempt by a new client to login as an existing user to the server with a session token from their previous session.private void
ClientManager.initializeClientConnection
(ClientConnectionData clientData, ClientThread clientThread) Standard flow for initializing a connection to a client who has already sent their identification message, and that has been checked to be valid.private void
ClientManager.initializePendingClientConnection
(UUID clientId, String pendingUsername, ClientThread clientThread) Initializes a connection to a client whose registration is pending, thus they should simply keep their connection alive, and receive aRegistrationStatus.Type.PENDING
message, instead of aServerWelcome
. -
Uses of ClientThread in nl.andrewl.concord_server.event
Methods in nl.andrewl.concord_server.event with parameters of type ClientThreadModifier and TypeMethodDescriptionvoid
ChannelMoveHandler.handle
(nl.andrewl.concord_core.msg.types.channel.MoveToChannel msg, ClientThread client, ConcordServer server) void
ChatHandler.handle
(nl.andrewl.concord_core.msg.types.chat.Chat msg, ClientThread client, ConcordServer server) void
ChatHistoryRequestHandler.handle
(nl.andrewl.concord_core.msg.types.chat.ChatHistoryRequest msg, ClientThread client, ConcordServer server) <T extends nl.andrewl.concord_core.msg.Message>
voidEventManager.handle
(T message, ClientThread client) Handles a new message that was sent from a client.void
MessageHandler.handle
(T msg, ClientThread client, ConcordServer server) private void
ChatHistoryRequestHandler.handleIdRequest
(ClientThread client, Channel channel, String id) Handles a request for a single message from a channel.