private class MessageTrackerHubConnector.CallAllHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
msgTag_ |
private java.util.Map |
responseMap_ |
private java.util.Collection |
transSet_ |
Constructor and Description |
---|
CallAllHandler(java.lang.String msgTag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addResponse(java.lang.String responderId,
Response response)
Supplies a response to the callAll invocation handled by this object.
|
private void |
processResponse(java.lang.String responderId,
Response response)
Does the work of passing a received response to the relevant
member of the transmission list.
|
private void |
retireIfDone()
Checks whether this object has any further work to do
(any more responses are expected) and if not uninstalls itself,
at which point it becomes unreachable and can be garbage collected.
|
void |
setTransmissions(Transmission[] transmissions)
Called once when the list of transmissions corresponding to the
callAll invocation is known.
|
private final java.lang.String msgTag_
private final java.util.Map responseMap_
private java.util.Collection transSet_
CallAllHandler(java.lang.String msgTag)
msgTag
- message tag labelling the callAll sendpublic void setTransmissions(Transmission[] transmissions)
transmissions
- list of transmission objects, one for each
callAll recipientpublic void addResponse(java.lang.String responderId, Response response)
responderId
- client ID of responderresponse
- responseprivate void processResponse(java.lang.String responderId, Response response)
setTransmissions(org.astrogrid.samp.gui.Transmission[])
.responderId
- client ID of responderresponse
- responseprivate void retireIfDone()
setTransmissions(org.astrogrid.samp.gui.Transmission[])
.