code: public int countProtocolItems()
      throws MessageStoreException
    {
      if (tc.isEntryEnabled())  
        SibTr.entry(tc, "countProtocolItems");      
  
      int count = 0;
      
      NonLockingCursor cursor 
        = newNonLockingItemCursor(new ClassEqualsFilter(StreamSet.class));
             
      AbstractItem item = cursor.next();
      while (null != item)
      {
        //ProtocolItem protocolItem = (ProtocolItem)item;
        count++;
        item = cursor.next();
      }
   
      if (tc.isEntryEnabled())  
        SibTr.exit(tc, "countProtocolItems", new Integer(count));
              
      return count;
    }
docs: Return the count of ProtocolItems (for diagnostic use)
  
  @return DestinationHandler