HandshakingState(StateMachine.Fsm fsm, Channel channel) { super(fsm); LOG.debug("NEW STATE: HANDSHAKING"); this.channel = channel; TSOProto.HandshakeRequest.Builder handshake = TSOProto.HandshakeRequest.newBuilder(); // Add the required handshake capabilities when necessary handshake.setClientCapabilities(TSOProto.Capabilities.newBuilder().build()); channel.write(TSOProto.Request.newBuilder().setHandshakeRequest(handshake.build()).build()); timeout = newTimeout(); }
HandshakingState(StateMachine.Fsm fsm, Channel channel) { super(fsm); LOG.debug("NEW STATE: HANDSHAKING"); this.channel = channel; TSOProto.HandshakeRequest.Builder handshake = TSOProto.HandshakeRequest.newBuilder(); // Add the required handshake capabilities when necessary handshake.setClientCapabilities(TSOProto.Capabilities.newBuilder().build()); channel.write(TSOProto.Request.newBuilder().setHandshakeRequest(handshake.build()).build()); timeout = newTimeout(); }
/** * <code>optional .HandshakeRequest handshakeRequest = 3;</code> */ public Builder mergeHandshakeRequest(org.apache.omid.proto.TSOProto.HandshakeRequest value) { if (handshakeRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && handshakeRequest_ != org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) { handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.newBuilder(handshakeRequest_).mergeFrom(value).buildPartial(); } else { handshakeRequest_ = value; } onChanged(); } else { handshakeRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder toBuilder() { return newBuilder(this); }
public static Builder newBuilder(org.apache.omid.proto.TSOProto.HandshakeRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.HandshakeRequest prototype) {