Create a new ServiceAdapter instance
the internal session this adapter is bound to
the function to enqueue messages
The internal session this adapter is bound to
Listeners that have bee registered for each command service
The function to enqueue messages
Add a service to the adapter, in order to receive requests from the server.
the service definition
the service implementation
Handle an error coming back from the server
the stream containing the data of the error
Handle an incoming request
the command header of the request
the stream containing the data of the request
Handle a response coming back from the server
the stream containing the data of the response
Checks whether a service is already registered.
Callback function to handle inbound command messages to be routed to appropriate handlers.
the service message mode.
the input stream to read from.
Send an error command message to the server for a given service.
the header encapsulating the message's context.
Send a request command message to the server for a given service.
the header encapsulating the message's context.
the command to send.
the serialiser for the command object.
Send a response command message to the server for a given service.
the header encapsulating the message's context.
the command to send.
the serialiser for the command object.
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
Adaptor to bridge v4-stack components and command services.