Anonymous inner class Questions

1

For all you Java experts: Synchronization w/Anonymous Inner Class?
Hey All, I have the following method, and I am unclear if the Timer being inside a synchronized method will cause the method to block for the duration of the Timer. private synchronized void _addToPendingHosts(final String hostURI) { if (pendingHosts_.contains(hostURI) == true) return; pendingHosts_.add(hostURI); // Schedule to check if we h ave received an ACK [...]

Answer Question   |  April 13, 2009  7:27 PM
Anonymous inner class, Java, Java Synchronization
asked by:
95 pts.

1