helloVersion, helloXid, MessageFactory.digVersions(helloInput.getElements())); Future<RpcResult<Void>> helloResult = connectionAdapter.hello(helloInput);
public void handshake(ConnectionAdapter connectionAdapter) { HelloInputBuilder builder = new HelloInputBuilder(); builder.setVersion((short) getMaxOFSupportedProtocol()); builder.setXid(DEFAULT_XID); List<Elements> elements = new ArrayList<Elements>(); builder.setElements(elements); connectionAdapter.hello(builder.build()); }
connectionAdapter.hello((HelloInput) msg);