public long countAvailablePublications ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "countAvailablePublications" ) ; int subs = destinationHandler . getSubscriptionIndex ( ) . getTotalSubscriptions ( ) ; // Need to compensate for subscription reference streams and the proxy // reference stream. long pubs = - 1 ; try { pubs = getStatistics ( ) . getAvailableItemCount ( ) - subs - 1 ; } catch ( MessageStoreException e ) { // FFDC FFDCFilter . processException ( e , "com.ibm.ws.sib.processor.impl.store.itemstreams.PubSubMessageItemStream.countAvailablePublications" , "1:465:1.74" , this ) ; SibTr . exception ( tc , e ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "countAvailablePublications" , Long . valueOf ( pubs ) ) ; return pubs ; }
Count the available publications .