public class CallerWrapper extends ServiceCaller
busResourceURI, owner, theBus
Constructor and Description |
---|
CallerWrapper(ModuleContext context,
Caller r) |
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.
|
Caller |
getResource() |
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. |
void |
setResource(Caller resource) |
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, inject, inject, removeAvailabilitySubscription, sendCall, sendCall, sendRequest
close, getComment, getLabel, getType, getURI, setComment, setLabel
public CallerWrapper(ModuleContext context, Caller r)
public Caller getResource()
public void setResource(Caller resource)
public void communicationChannelBroken()
ServiceCaller
communicationChannelBroken
in class ServiceCaller
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.Copyright © 2018 universAAL Consortium. All rights reserved.