public void sendConsumerInfo(int requestType,
DestinationUID duid,
int destType, int infoType,
boolean sendToWildcard) {
DestinationUID uid = null;
synchronized(consumerInfoRequests) {
Iterator itr = consumerInfoRequests.iterator();
while (itr.hasNext()) {
uid = (DestinationUID)itr.next();
if (!uid.isWildcard()) {
if (duid.equals(uid)) {
sendConsumerInfo(requestType, uid.getName(),
destType, infoType);
break;
}
continue;
}
if (duid.isWildcard() &&
uid.getName().equals(duid.getName()) &&
duid.isQueue() == uid.isQueue()) {
sendConsumerInfo(requestType, uid.getName(), destType, infoType);
break;
}
if (DestinationUID.match(duid, uid)) {
if (sendToWildcard) {
sendConsumerInfo(requestType, uid.getName(), destType, infoType);
} else {
Globals.getConnectionManager().getConsumerInfoNotifyManager().
consumerInfoRequested(this, uid, destType, infoType);
}
}