public GroupRequest( Message m, Transport transport, Collection<Address> mbrs, RequestOptions options) { super(m, null, transport, options); int size = mbrs.size(); requests = new HashMap<Address, Rsp>(size); setTargets(mbrs); }
/** * @param msg The message to be sent * @param corr The request correlator to be used. A request correlator sends requests tagged with * a unique ID and notifies the sender when matching responses are received. The reason <code> * GroupRequest</code> uses it instead of a <code>Transport</code> is that multiple * requests/responses might be sent/received concurrently * @param targets The targets, which are supposed to receive the message. Any receiver not in this * set will discard the message. Targets are always a subset of the current membership * @param options The request options to be used for this call */ public GroupRequest( Message msg, RequestCorrelator corr, Collection<Address> targets, RequestOptions options) { super(msg, corr, null, options); int size = targets.size(); requests = new HashMap<Address, Rsp>(size); setTargets(targets); }