You should actually probably make these atomic with a synchronized block, they can be accessed from multiple threads