RTI Connext Java API
Version 5.2.0
|
A callback-based replier. More...
Public Member Functions | |
SimpleReplier (DomainParticipant participant, String serviceName, SimpleReplierListener< TReq, TRep > listener, TypeSupport requestTypeSupport, TypeSupport replyTypeSupport) | |
Creates a new SimpleReplier. | |
SimpleReplier (SimpleReplierParams< TReq, TRep > params) | |
Creates a new SimpleReplier. | |
void | close () |
Releases the resources created by this SimpleReplier. | |
A callback-based replier.
A SimpleReplier is based on a com.rti.connext.requestreply.SimpleReplierListener<TReq,TRep> that users provide. Requests are passed to the user callback, which returns a reply.
SimpleRepliers are useful for simple use cases where a single reply for a request can be generated quickly (e.g., looking up a data base).
When more than one reply for a request can be generated or the processing needs to happen asynchronously, use a com.rti.connext.requestreply.Replier<TReq,TRep> instead.
SimpleReplier | ( | DomainParticipant | participant, |
String | serviceName, | ||
SimpleReplierListener< TReq, TRep > | listener, | ||
TypeSupport | requestTypeSupport, | ||
TypeSupport | replyTypeSupport | ||
) |
Creates a new SimpleReplier.
SimpleReplier | ( | SimpleReplierParams< TReq, TRep > | params | ) |
Creates a new SimpleReplier.
void close | ( | ) |
Releases the resources created by this SimpleReplier.