JAVA conurrency tips - thread-safe classes