}
// will be triggered by ConnectionStatusListener.toAlive() ..
if (this.subscriptionListener != null) return;
SubscribeQosServer subscribeQosServer = sub.getSubscribeQosServer();
if (subscribeQosServer == null) {
return;
}
if (log.isLoggable(Level.FINE)) log.fine(ME+": addSubscriber("+sub.getId()+")");
if (subscribeQosServer.getWantInitialUpdate() == true || calleeIsXPathMatchCheck) { // wantInitial==false is only checked if this is a subcribe() thread of a client
MsgUnitWrapper[] wrappers = null;
if (hasHistoryEntries())
wrappers = getMsgUnitWrapperArr(subscribeQosServer.getData().getHistoryQos().getNumEntries(),
subscribeQosServer.getData().getHistoryQos().getNewestFirst());
if (wrappers != null && wrappers.length > 0) {
int count = 0, currentCount = 0;
for (int i=0; i < wrappers.length; i++) {
if (this.distributor == null || wrappers[i].isInternal()) {