com.taosdata.jdbc.ws

## 类 Transport

- java.lang.Object
- - com.taosdata.jdbc.ws.Transport

所有已实现的接口:
  AutoCloseable

    public class Transport
    extends Object
    implements AutoCloseable

send message

### 字段概要

字段
`static int` `DEFAULT_MESSAGE_WAIT_TIMEOUT`

### 构造器概要

构造器
构造器和说明
`Transport(WSFunction function, ConnectionParam param, InFlightRequest inFlightRequest)`

### 方法概要

所有方法 静态方法 实例方法 具体方法
`static void` `checkConnection(Transport transport, int connectTimeout)`
`static void` `checkoutAuth(Transport transport, CountDownLatch latch, int requestTimeout)`
`void` `close()`
`boolean` `isAuth()`
`boolean` `isClosed()`
`Response` `send(Request request)`
`void` `sendWithoutRep(Request request)`
`void` `setAuth(boolean auth)`
`void` `setBinaryMessageHandler(Consumer<ByteBuffer> binaryMessageHandler)`
`void` `setTextMessageHandler(Consumer<String> textMessageHandler)`

### 从类继承的方法 java.lang.Object

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

### 字段详细资料

#### DEFAULT_MESSAGE_WAIT_TIMEOUT

    public static final int DEFAULT_MESSAGE_WAIT_TIMEOUT

另请参阅:
  常量字段值

### 构造器详细资料

#### Transport

    public Transport(WSFunction function,
                     ConnectionParam param,
                     InFlightRequest inFlightRequest)
              throws SQLException

抛出:
  `SQLException`

### 方法详细资料

#### setTextMessageHandler

    public void setTextMessageHandler(Consumer<String> textMessageHandler)

#### setBinaryMessageHandler

    public void setBinaryMessageHandler(Consumer<ByteBuffer> binaryMessageHandler)

#### isAuth

    public boolean isAuth()

#### setAuth

    public void setAuth(boolean auth)

#### send

    public Response send(Request request)
                  throws SQLException

抛出:
  `SQLException`

#### sendWithoutRep

    public void sendWithoutRep(Request request)

#### isClosed

    public boolean isClosed()

#### close

    public void close()

指定者:
  `close` 在接口中 `AutoCloseable`

#### checkConnection

    public static void checkConnection(Transport transport,
                                       int connectTimeout)
                                throws SQLException

抛出:
  `SQLException`

#### checkoutAuth

    public static void checkoutAuth(Transport transport,
                                    CountDownLatch latch,
                                    int requestTimeout)
                             throws SQLException

抛出:
  `SQLException`