SmartSoft Component-Developer API
|
Handler Class for SendServer for incoming commands. More...
#include <smartISendServerPattern_T.h>
Public Member Functions | |
virtual | ~ISendServerHandler ()=default |
virtual void | handleSend (const DataType &data)=0 |
Handler method for an incoming command. More... | |
Handler Class for SendServer for incoming commands.
Used by the SendServer to handle incoming commands. The user should provide the handleSend() method by subclassing and register an instance of this handler class with the SendServer.
|
virtualdefault |
|
pure virtual |
Handler method for an incoming command.
This method is called by the ISendServerPattern every time a new data is received. It must be provided by the component developer to handle incoming data. Since the method is executed by the communication thread, it must be very fast and non-blocking.
Usually the data will be inserted into a queue and another working thread processes the command. The IActiveQueueInputHandlerDecorator provides such a processing pattern.
data | communicated DataType object (Communication Object) |