Add Java DSL sample for Kafka 0.9

Make `PromiseTest` more fast decreasing `sleep()` in the `MathService`

Kafka-0.10.0 Compatibility

Upgrade to Spring Boot 1.4.0.RELEASE

Regenerate poms according to upgrades
This commit is contained in:
Artem Bilan
2016-07-11 16:07:48 -04:00
parent b6cbf15e4c
commit a46bd8acb3
71 changed files with 584 additions and 227 deletions

View File

@@ -23,9 +23,9 @@ import java.util.Random;
*/
public class MathService {
private final Random random = new Random();
public int multiplyByTwo(int i) throws Exception{
long sleep = random.nextInt(10) * 500;
long sleep = random.nextInt(10) * 100;
Thread.sleep(sleep);
return i*2;
}