indeedeng/java-dogstatsd-client — pull request #1 by ashofthedream (2012-12-21 01:00:10+00:00)
Title: API Improvements

Cause for replacing String[] to String...

```java
// More readable, simplify. With backwards compatibility
statsd.count("mycount", 24, new String[]{"foo:bar","baz"});
statsd.count("mycount", 24, "foo:bar","baz");
```

Cause for replacing int to long in time():
```java
// Timestamp in java is always long. Use old api we must cast to int:
long started = System.currentTimeMillis(); // or System.nanoTime(), or Data#getTime();
foo();
long end = System.currentTimeMillis() - started;
statsd.time("requests.show_tables", (int) end);

// Now we pass timeout without casting:
statsd.time("requests.show_tables", end);

// And backwards compatibility: casting without lose precision
int timeout = 10
statsd.time("requests.show_tables", timeout);
```