Instances of this class track pending requests. They are managed by the Hub in the sendRequest() method.
Public variables:
The key that this object is stored under. The same id as is used in the matching Request and Response objects.
Allows us to store the response so that it can be returned to the caller.
A class level variable that is used to indicate whether we are using the threaded model or not.
def __init__(self, id):
Constructs a new instance using the given id.
Waits for a response to be received and then returns it.
Used to indicate that a response has been received and to set the response
that was received. Any threads waiting on getResponse() will continue.
getResponse(self)
def getResponse(self):
responseReceived(self, response)
def responseReceived(self, response):