@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()); }
/** * <code>optional .TimestampResponse timestampResponse = 1;</code> */ public Builder mergeTimestampResponse(org.apache.omid.proto.TSOProto.TimestampResponse value) { if (timestampResponseBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && timestampResponse_ != org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) { timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.newBuilder(timestampResponse_).mergeFrom(value).buildPartial(); } else { timestampResponse_ = value; } onChanged(); } else { timestampResponseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
@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(); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.TimestampResponse prototype) {
public static Builder newBuilder(org.apache.omid.proto.TSOProto.TimestampResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
@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"); }