* @param ev - the event being returned.
*/
public synchronized void surrenderEvent(XMLEvent ev) {
- System.out.println("surrenderEvent " + ev.id + " poolSize " + poolSize);
+ //System.out.println("surrenderEvent " + ev.id
+ //+ " poolSize " + poolSize);
if (ev == null) return;
if (eventSet.get(ev.id)) {
+ //System.out.println("Event clash: " + ev);
MessageHandler.logln
("Event clash in XMLEvent pool. Id " + ev.id);
return;
*/
public XMLNamespaces getNamespaces() { return namespaces; }
+ /**
+ * Get the size of the event pool.
+ * @return pool size.
+ */
+ public int getPoolSize() { return pool.size(); }
+
}