public class Transport extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BYTE_ARRAY |
static int |
TSDB_CODE_RPC_NETWORK_UNAVAIL |
static int |
TSDB_CODE_RPC_SOMENODE_NOT_CONNECTED |
| Modifier | Constructor and Description |
|---|---|
protected |
Transport() |
|
Transport(WSFunction function,
ConnectionParam param,
InFlightRequest inFlightRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConnection(int connectTimeout) |
void |
close() |
ConnectionParam |
getConnectionParam() |
int |
getReconnectCount() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isConnectionLost() |
void |
reconnectTmq() |
Response |
send(Request request) |
Response |
send(Request request,
boolean reSend,
long timeout) |
Response |
send(Request request,
long timeout) |
Response |
send(String action,
long reqId,
io.netty.buffer.ByteBuf buffer,
boolean resend,
long timeout) |
Response |
send(String action,
long reqId,
long resultId,
long type,
byte[] rawData,
byte[] rawData2,
long timeout) |
Response |
send(String action,
long reqId,
long resultId,
long type,
byte[] rawData,
long timeout) |
void |
sendFetchBlockAsync(long reqId,
long resultId) |
void |
sendWithoutResponse(Request request) |
Response |
sendWithoutRetry(Request request,
long timeout) |
void |
shutdown() |
public static final int TSDB_CODE_RPC_NETWORK_UNAVAIL
public static final int TSDB_CODE_RPC_SOMENODE_NOT_CONNECTED
public static final byte[] EMPTY_BYTE_ARRAY
protected Transport()
public Transport(WSFunction function, ConnectionParam param, InFlightRequest inFlightRequest) throws SQLException
SQLExceptionpublic Response send(Request request) throws SQLException
SQLExceptionpublic Response send(Request request, long timeout) throws SQLException
SQLExceptionpublic Response send(Request request, boolean reSend, long timeout) throws SQLException
SQLExceptionpublic Response send(String action, long reqId, long resultId, long type, byte[] rawData, long timeout) throws SQLException
SQLExceptionpublic Response send(String action, long reqId, long resultId, long type, byte[] rawData, byte[] rawData2, long timeout) throws SQLException
SQLExceptionpublic void sendFetchBlockAsync(long reqId,
long resultId)
throws SQLException
SQLExceptionpublic Response send(String action, long reqId, io.netty.buffer.ByteBuf buffer, boolean resend, long timeout) throws SQLException
SQLExceptionpublic Response sendWithoutRetry(Request request, long timeout) throws SQLException
SQLExceptionpublic void sendWithoutResponse(Request request) throws SQLException
SQLExceptionpublic boolean isClosed()
public boolean isConnectionLost()
public void close()
close in interface AutoCloseablepublic void checkConnection(int connectTimeout)
throws SQLException
SQLExceptionpublic void shutdown()
public void reconnectTmq()
throws SQLException
SQLExceptionpublic int getReconnectCount()
public boolean isConnected()
public final ConnectionParam getConnectionParam()
Copyright © 2025. All rights reserved.