Open MicahZoltu opened 8 years ago
Also, what are the units? Milliseconds?
yes it is milliseconds. FYI the Java API is a wrapper around a JSON/HTTP API, so we could use duration or timeunit but would require some serialisation on the Java side and then on the Scala server side into a Scala Duration. I don't have anytime to work on this atm but will happily review a PR. Beware the API needs to be backward compatible.
https://github.com/scassandra/scassandra-server/blob/master/java-client/src/main/java/org/scassandra/http/client/PrimingRequest.java#L270
fixedDelay
has no units in the variable name and just wants a long. If targeting Java 8, I recommend taking aDuration
instead (so you don't need to worry about units). If targeting Java 7 or lower then I recommend either taking aTimeUnit
parameter as well or changing the name everywhere tofixedDelayInMilliseconds
orfixedDelayInSeconds
orfixedDelayInFortnights
.