Package com.swiftmq.tools.requestreply
Class RequestServiceRegistry
java.lang.Object
com.swiftmq.tools.requestreply.RequestServiceRegistry
- Direct Known Subclasses:
ConnectionImpl
,EndpointImpl
,EndpointImpl
The RequestServiceRegistry is responsible to register RequestServices for dispatchIds
and dispatches incoming Requests to RequestServices. Is there are no RequestService
registered for this dispatchId, a Reply with an exception is send back.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addRequestService
(RequestService requestService) void
int
int
getRequestService
(int dispatchId) protected boolean
void
removeRequestService
(int dispatchId) void
setReplyHandler
(ReplyHandler replyHandler)
-
Constructor Details
-
RequestServiceRegistry
public RequestServiceRegistry()
-
-
Method Details
-
setReplyHandler
-
getNumberServices
public int getNumberServices() -
getNextFreeDispatchId
public int getNextFreeDispatchId() -
addRequestService
-
removeRequestService
public void removeRequestService(int dispatchId) -
getRequestService
-
isSendExceptionEnabled
protected boolean isSendExceptionEnabled() -
dispatch
-