public ConversationID(int id) { synchronized (_lock) { _id = id; if (_id >= _next) { _next = _id + 1; } else if (_id <= 0) { throw new IllegalArgumentException("Cannot use a negative ConversationID"); } }
public ConversationID() { synchronized(_lock) { _id = _next++; }
    public ConversationID(int id) {        synchronized (_lock) {            _id = id;            if (_id >= _next) {                _next = _id + 1;            } else if (_id <= 0) {                throw new IllegalArgumentException("Cannot use a negative ConversationID");            }         }            }