public StateMachine.State handleEvent(ResponseEvent e) { if (e.getParam().hasHandshakeResponse() && e.getParam().getHandshakeResponse().getClientCompatible()) { if (timeout != null) { timeout.cancel(); } return new ConnectedState(fsm, channel, timeoutExecutor); } else { cleanupState(); LOG.error("Client incompatible with server"); return new HandshakeFailedState(fsm, new HandshakeFailedException()); } }
public StateMachine.State handleEvent(ResponseEvent e) { lowLatency = e.getParam().getHandshakeResponse().getLowLatency(); if (e.getParam().hasHandshakeResponse() && e.getParam().getHandshakeResponse().getClientCompatible()) { if (timeout != null) { timeout.cancel(); } return new ConnectedState(fsm, channel, timeoutExecutor); } else { cleanupState(); LOG.error("Client incompatible with server"); return new HandshakeFailedState(fsm, new HandshakeFailedException()); } }
public Builder mergeFrom(org.apache.omid.proto.TSOProto.Response other) { if (other == org.apache.omid.proto.TSOProto.Response.getDefaultInstance()) return this; if (other.hasTimestampResponse()) { mergeTimestampResponse(other.getTimestampResponse()); } if (other.hasCommitResponse()) { mergeCommitResponse(other.getCommitResponse()); } if (other.hasHandshakeResponse()) { mergeHandshakeResponse(other.getHandshakeResponse()); } if (other.hasFenceResponse()) { mergeFenceResponse(other.getFenceResponse()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }