Uses of Interface
nl.andrewl.concord_core.msg.Message
Packages that use Message
Package
Description
Message components which are used by the server and the default client
implementation.
Contains all the various message types which can be sent between the server
and client.
Messages pertaining to channel interaction and updates.
Messages pertaining to chat messages and other auxiliary messages regarding
the management of chat information.
Messages pertaining to the establishment of a connection with clients.
Contains some useful one-off utility classes that any consumer of Concord
messages could benefit from.
-
Uses of Message in nl.andrewl.concord_core.msg
Classes in nl.andrewl.concord_core.msg with type parameters of type MessageModifier and TypeInterfaceDescriptioninterface
MessageReader<T extends Message>
final record
MessageTypeSerializer<T extends Message>
Record containing the components needed to read and write a given message.interface
MessageWriter<T extends Message>
Methods in nl.andrewl.concord_core.msg with type parameters of type MessageModifier and TypeMethodDescriptionMessageTypeSerializer.generateByteSizeFunction
(RecordComponent[] components) Generates a function implementation that counts the byte size of a message based on the message's record component types.static <T extends Message>
MessageTypeSerializer<T>MessageTypeSerializer.generateForRecord
(Class<T> messageTypeClass) Generates a message type instance for a given class, using reflection to introspect the fields of the message.private static <T extends Message>
MessageReader<T>MessageTypeSerializer.generateReader
(Constructor<T> constructor) Generates a message reader for the given message constructor method.private static <T extends Message>
MessageWriter<T>MessageTypeSerializer.generateWriter
(RecordComponent[] components) Generates a message writer for the given message record components.static <T extends Message>
MessageTypeSerializer<T>Gets theMessageTypeSerializer
instance for a given message class, and generates a new implementation if none exists yet.static <T extends Message>
intMessageUtils.getByteSize
(T[] items) default <T extends Message>
MessageTypeSerializer<T>Message.getTypeSerializer()
Convenience method to get the serializer for this message's type, using the static auto-generated set of serializers.private <T extends Message>
voidSerializer.registerType
(int id, Class<T> messageClass) Helper method which registers a message type to be supported by the serializer, by adding it to the normal and inverse mappings.<T extends Message>
voidSerializer.writeMessage
(Message msg, OutputStream o) Writes a message to the given output stream.Methods in nl.andrewl.concord_core.msg that return MessageModifier and TypeMethodDescriptionSerializer.readMessage
(InputStream i) Reads a message from the given input stream and returns it, or throws an exception if an error occurred while reading from the stream.Methods in nl.andrewl.concord_core.msg with parameters of type MessageModifier and TypeMethodDescriptionstatic int
MessageUtils.getByteSize
(Message msg) static <T extends Message>
intMessageUtils.getByteSize
(T[] items) <T extends Message>
voidSerializer.writeMessage
(Message msg, OutputStream o) Writes a message to the given output stream. -
Uses of Message in nl.andrewl.concord_core.msg.types
Classes in nl.andrewl.concord_core.msg.types that implement MessageModifier and TypeClassDescriptionfinal record
Error message which can be sent between either the server or client to indicate an unsavory situation.final record
Metadata is sent by the server to clients to inform them of the structure of the server.static final record
Metadata about a top-level channel in the server which is visible and joinable for a user.final record
This message is sent from the server to the client whenever a change happens which requires the server to notify clients about a change of the list of global users.final record
Standard set of user data that is used mainly as a component of other more complex messages. -
Uses of Message in nl.andrewl.concord_core.msg.types.channel
Classes in nl.andrewl.concord_core.msg.types.channel that implement MessageModifier and TypeClassDescriptionfinal record
This message is sent by clients when they indicate that they would like to create a new thread in their current channel.final record
A message that's sent to a client when they've been moved to another channel. -
Uses of Message in nl.andrewl.concord_core.msg.types.chat
Classes in nl.andrewl.concord_core.msg.types.chat that implement MessageModifier and TypeClassDescriptionfinal record
This message contains information about a chat message that a user sent.final record
A message which clients can send to the server to request some messages from the server's history of all sent messages from a particular source.final record
The response that a server sends to aChatHistoryRequest
. -
Uses of Message in nl.andrewl.concord_core.msg.types.client_setup
Classes in nl.andrewl.concord_core.msg.types.client_setup that implement MessageModifier and TypeClassDescriptionfinal record
This message is sent by clients to log into a server that they have already registered with, but don't have a valid session token for.final record
The data that new users should send to a server in order to register in that server.final record
This message is sent by the client to log into a server using a session token instead of a username/password combination.final record
This message is sent as the first message from both the server and the client to establish an end-to-end encryption via a key exchange.final record
A response from the server which indicates the current status of the client's registration request.final record
This message is sent from the server to the client after the server accepts the client's identification and registers the client in the server. -
Uses of Message in nl.andrewl.concord_core.util
Methods in nl.andrewl.concord_core.util with type parameters of type MessageModifier and TypeMethodDescription<T extends Message>
T[]ExtendedDataInputStream.readArray
(MessageTypeSerializer<T> type) <T extends Message>
ChainedDataOutputStreamChainedDataOutputStream.writeArray
(T[] array) <T extends Message>
ChainedDataOutputStreamChainedDataOutputStream.writeMessage
(Message msg) Methods in nl.andrewl.concord_core.util that return MessageModifier and TypeMethodDescription<T extends Message>
T[]ExtendedDataInputStream.readArray
(MessageTypeSerializer<T> type) Methods in nl.andrewl.concord_core.util with parameters of type MessageModifier and TypeMethodDescription<T extends Message>
ChainedDataOutputStreamChainedDataOutputStream.writeArray
(T[] array) <T extends Message>
ChainedDataOutputStreamChainedDataOutputStream.writeMessage
(Message msg)