Add java docs for StatsCollector constructor and StatsCollectorCallback thread safety