RTI Connext Java API
Version 5.0.0
|
The listener called by a SimpleReplier. More...
Inherits EventListener.
Public Member Functions | |
TRep | onRequestAvailable (Sample< TReq > request) |
User callback that receives a request and provides a reply. | |
void | returnLoan (TRep reply) |
Returns a previously generated reply to the user. | |
The listener called by a SimpleReplier.
TRep onRequestAvailable | ( | Sample< TReq > | request | ) |
User callback that receives a request and provides a reply.
This operation gets called when a request is available and expects a reply that is automatically sent. Immediately after that, returnLoan is called.
request | The received request |
void returnLoan | ( | TRep | reply | ) |
Returns a previously generated reply to the user.
This operation is always called right after sending the reply created by onRequestAvailable. It can be used to release any resources from the reply creation. If there are no resources to release, the implementation body can be empty.
reply | The reply previously provided in onRequestAvailable |