org.apache.tinkerpop.gremlin.driver.simple

## Class NioClient

- java.lang.Object
- - org.apache.tinkerpop.gremlin.driver.simple.AbstractClient
  - - org.apache.tinkerpop.gremlin.driver.simple.NioClient

- All Implemented Interfaces:
    Closeable, AutoCloseable, SimpleClient

      public class NioClient
      extends AbstractClient

  A simple, non-thread safe Gremlin Server client using NIO. Typical use is for testing and demonstration.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Field Summary

    - ### Fields inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient

      `callbackResponseHandler, group`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NioClient()`
    `NioClient(URI uri)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `writeAndFlush(RequestMessage requestMessage)`

    - ### Methods inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient

      `submit, submit, submitAsync`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.driver.simple.SimpleClient

      `submit, submit, submitAsync`

- - ### Constructor Detail

    - #### NioClient

          public NioClient()

    - #### NioClient

          public NioClient(URI uri)

  - ### Method Detail

    - #### writeAndFlush

          public void writeAndFlush(RequestMessage requestMessage)
                             throws Exception

      Specified by:
        `writeAndFlush` in class `AbstractClient`
      Throws:
        `Exception`

    - #### close

          public void close()
                     throws IOException

      Throws:
        `IOException`

Copyright © 2013–2018 Apache Software Foundation. All rights reserved.