RTI Connext Java API  Version 5.0.0
SimpleReplierListener< TReq, TRep > Interface Reference

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.
 

Detailed Description

The listener called by a SimpleReplier.

See Also
com.rti.connext.requestreply.SimpleReplier<TReq,TRep>
SimpleReplier example

Member Function Documentation

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.

Parameters
requestThe received request
Returns
A reply for that 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.

Parameters
replyThe reply previously provided in onRequestAvailable

RTI Connext Java API Version 5.0.0 Copyright © Thu Aug 30 2012 Real-Time Innovations, Inc