Make Message UUID generator pluggable
Message id is generated using UUID.randomUUID() which uses SecureRandom and it will be very slow on linux systems when creating many messages :) http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom For most cases incremental integer generator will be enough: AtomicLong.incrementAndGet. However, it is possible that in some cases a global unique UUID will be required (in clustered environment?). So it's better to make such generator pluggable.
public interface UidGenerator {
String generate();
}
Fixed https://github.com/Atmosphere/atmosphere/commit/725d526d717a316611c76094c79c026d689571fe
The fix isn't complete, BroadcastMessage.java still has UUID.randomUUID() hard coded.
@slovdahl That one can't be changed. Instead the API should be deprecated.