public class DefaultServiceCaller extends ServiceCaller
ServiceCaller.call(org.universAAL.middleware.service.ServiceRequest)
) or ignores
the asynchronous responses.busResourceURI, owner, theBus
Constructor and Description |
---|
DefaultServiceCaller(ModuleContext context)
Constructor for usage by de-serializers.
|
Modifier and Type | Method and Description |
---|---|
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is
being stopped.
|
void |
handleResponse(String reqID,
ServiceResponse response)
Will be called automatically in a new thread whenever the response
corresponding to a previous call to
ServiceCaller.sendRequest(ServiceRequest)
is ready. |
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, inject, inject, removeAvailabilitySubscription, sendCall, sendCall, sendRequest
close, getComment, getLabel, getType, getURI, setComment, setLabel
public DefaultServiceCaller(ModuleContext context)
context
- public void communicationChannelBroken()
ServiceCaller
communicationChannelBroken
in class ServiceCaller
ServiceCaller.communicationChannelBroken()
public void handleResponse(String reqID, ServiceResponse response)
ServiceCaller
ServiceCaller.sendRequest(ServiceRequest)
is ready.handleResponse
in class ServiceCaller
reqID
- the ID returned by the previous call to
ServiceCaller.sendRequest(ServiceRequest)
.response
- the expected response.ServiceCaller.handleResponse(String, ServiceResponse)
Copyright © 2018 universAAL Consortium. All rights reserved.