Package com.cygnusreach.messages
Types
A Command is a request from one side of the peer connection that some action be performed by the other side of the peer connection. The peer can either respond by acknowledging the command when it is received or when it is finished executing. The peer may also respond with an error
A CommandAcknowledgement
is a message that is sent in response to a Command
from the connected peer. It indicates that either:
CommandError
is a CommandAcknowledgement that provides error information that occurred in response to a Command.
Default category values used by IRemoteSupportClient.sendChat, IRemoteSupportClient.sendBytes, IRemoteSupportClient.sendLogMessage, and IRemoteSupportClient.sendObject
Default tag values used by IRemoteSupportClient.sendChat, IRemoteSupportClient.sendBytes, IRemoteSupportClient.sendLogMessage, and IRemoteSupportClient.sendObject
Allows a sender to wait for responses and acknowledgements from a remote peer
Contains actions that can be taken in response to a command
Notifies a sender that a command has been acknowledged by the peer
User defined status code and message. Can be used to organize error messages using enum classes
IQueryContext
is created when a Query is received from a peer. It declares the actions that that can be taken in response to a remote support query.
Notifies a sender of QueryResponses from the peer.
Provides an integer value to be used as a category. Can be helpful when defining categories using an enum class for use as categories with the MessageBuilder.
Encoder and decoder for type T
Provides a string tag containing type information for a TaggedValue
Decoder that decodes an IMessageBufferReader based on an embedded tag
Encoder that transforms value T into a TaggedValue
Message
is an abstract class that represents a unit of communication between two connected peers. It wraps the user-defined payload for delivery between connected peers.
Builds a POCO object that can be sent to a remote peer via IRemoteSupportClient.sendCommand, IRemoteSupportClient.sendNotification, and IRemoteSupportClient.sendQuery
Protocol message type.
A Notification
is a message that does not require a response from the peer.
QueryError
is a query response that contains information about an error that is either:
QueryResponse
is a message containing the response to an Query sent by the other side of the connection.
Data representing an object along with information required to decode it
Encoder/decoder for data in well known formats
Functions
Send a ByteBuffer with the DefaultCategory.Bytes category and tag
Send a text notification with the DefaultCategory.Chat category and tag
Send a text notification with the DefaultCategory.Log category and tag
Send a serialized object with the DefaultCategory.Object category and tag
Create a TaggedValue from an IUserMessageTag and a ByteBuffer
Create a TaggedValue from an IUserMessageTag and a ByteArray