提交 258023d8 编写于 作者: G Gyula Fora 提交者: Stephan Ewen

[streaming] uuid update

上级 2a6e93dd
......@@ -21,8 +21,9 @@ public class AckEventListener implements EventListener {
String ackCID = recordId.split("-", 2)[0];
if (ackCID.equals(taskInstanceID)) {
System.out.println("Ack recieved " + ackEvent.getRecordId());
Long nt= System.nanoTime();
recordBuffer.ackRecord(ackEvent.getRecordId());
System.out.println("Ack recieved " + ackEvent.getRecordId()+"\nAck exec. time(ns): "+(System.nanoTime()-nt));
System.out.println("--------------");
}
......
......@@ -47,7 +47,7 @@ public class StreamRecord implements IOReadableWritable, Serializable {
public StreamRecord setId(String channelID) {
Random rnd = new Random();
uid.setValue(channelID + "-" + rnd.nextInt());
uid.setValue(channelID + "-" + rnd.nextInt(1000));
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册