Package org.tarantool.msgpack

Examples of org.tarantool.msgpack.TarantoolConnection16


    @Test
    void testClient16() throws IOException {
        SocketChannelPooledConnectionFactory16 factory = new SocketChannelPooledConnectionFactory16();

        TarantoolConnection16 con = factory.getConnection();
        con.auth("test", "test");

        Message[] str = new Message[]{new Message()};
        List<Value> delete0 = con.delete(0, Arrays.asList(0));
        List<Value> delete = con.delete(0, Arrays.asList(1));
        List<Value> insert = con.insert(0, Arrays.asList(1, "hello"));
        Message[] insert1 = con.insert(Message[].class, 0, new Message());
        List<Value> select0 = con.select(0, 0, Arrays.asList(1), 0, 100);
        Message[] select = con.select(Message[].class, 0, 0, new int[]{0}, 0, 10);
        List<Value> time = con.call("box.time");
        float[][] time2 = con.call(float[][].class, "box.time");
        Message[] updated = con.update(Message[].class, 0, new int[]{0}, Arrays.asList(Arrays.asList("=", 1, "!!!")));
        factory.returnConnection(con);
        factory.close();


    }
View Full Code Here

TOP

Related Classes of org.tarantool.msgpack.TarantoolConnection16

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.