RTI Connext Java API  Version 6.0.0
 All Classes Namespaces Functions Variables Groups Pages
SimpleReplier< TReq, TRep > Class Reference

A callback-based replier. More...

Inheritance diagram for SimpleReplier< TReq, TRep >:
CloseableFinalizer

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.
 

Detailed Description

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 callback, which returns a reply. The reply is directed only to the Requester that sent the request.

SimpleRepliers are useful for simple use cases where a single reply for a request can be generated quickly, for example, looking up a table.

When more than one reply for a request can be generated or the processing is complex or needs to happen asynchronously, use a com.rti.connext.requestreply.Replier<TReq,TRep> instead.

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

Constructor & Destructor Documentation

SimpleReplier ( DomainParticipant  participant,
String  serviceName,
SimpleReplierListener< TReq, TRep >  listener,
TypeSupport  requestTypeSupport,
TypeSupport  replyTypeSupport 
)
SimpleReplier ( SimpleReplierParams< TReq, TRep >  params)

Member Function Documentation

void close ( )

Releases the resources created by this SimpleReplier.

See Also
com.rti.connext.requestreply.Replier<TReq,TRep>.close()

RTI Connext Java API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc