8910111213141516171819
public class TestClient { @Test public void standardTest() { TarantoolConnection connection = new SocketChannelTarantoolConnection("localhost", 33313); StandardTest st = new StandardTest(connection); st.run(); connection.close(); }
15161718192021
public SocketChannelPooledConnectionFactory() { } @Override public TarantoolConnection newUnpooledConnection() { return new SocketChannelTarantoolConnection(host, port); }
51525354555657585960
e.printStackTrace(); } } writer.close(); reader.close(); SocketChannelTarantoolConnection con = new SocketChannelTarantoolConnection(); Tuple t = con.findOne(0, 0, 0, new Tuple(1).setInt(0, 1)); System.out.println(t.getLong(4)); con.close(); }