@Override public void sendTimestampResponse(long startTimestamp, Channel c) { TSOProto.Response.Builder builder = TSOProto.Response.newBuilder(); TSOProto.TimestampResponse.Builder respBuilder = TSOProto.TimestampResponse.newBuilder(); respBuilder.setStartTimestamp(startTimestamp); builder.setTimestampResponse(respBuilder.build()); c.write(builder.build()); }
@Override public void sendTimestampResponse(long startTimestamp, Channel c) { TSOProto.Response.Builder builder = TSOProto.Response.newBuilder(); TSOProto.TimestampResponse.Builder respBuilder = TSOProto.TimestampResponse.newBuilder(); respBuilder.setStartTimestamp(startTimestamp); builder.setTimestampResponse(respBuilder.build()); c.write(builder.build()); timestampMeter.mark(); }
@Override public void sendTimestampResponse(long startTimestamp, Channel c, MonitoringContext monCtx) { TSOProto.Response.Builder builder = TSOProto.Response.newBuilder(); TSOProto.TimestampResponse.Builder respBuilder = TSOProto.TimestampResponse.newBuilder(); respBuilder.setStartTimestamp(startTimestamp); builder.setTimestampResponse(respBuilder.build()); c.write(builder.build()); timestampMeter.mark(); monCtx.timerStop("reply.processor.timestamp.latency"); }
public Builder mergeFrom(org.apache.omid.proto.TSOProto.TimestampResponse other) { if (other == org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) return this; if (other.hasStartTimestamp()) { setStartTimestamp(other.getStartTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }