public class Transport extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MESSAGE_WAIT_TIMEOUT |
| Constructor and Description |
|---|
Transport(WSFunction function,
ConnectionParam param,
InFlightRequest inFlightRequest) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkConnection(Transport transport,
int connectTimeout) |
void |
close() |
boolean |
isClosed() |
Response |
send(Request request) |
Response |
send(String action,
long reqId,
long stmtId,
long type,
byte[] rawData) |
void |
sendWithoutRep(Request request) |
void |
setBinaryMessageHandler(Consumer<ByteBuffer> binaryMessageHandler) |
void |
setTextMessageHandler(Consumer<String> textMessageHandler) |
void |
setTimeout(long timeout) |
void |
shutdown() |
public static final int DEFAULT_MESSAGE_WAIT_TIMEOUT
public Transport(WSFunction function, ConnectionParam param, InFlightRequest inFlightRequest) throws SQLException
SQLExceptionpublic void setBinaryMessageHandler(Consumer<ByteBuffer> binaryMessageHandler)
public void setTimeout(long timeout)
public Response send(Request request) throws SQLException
SQLExceptionpublic Response send(String action, long reqId, long stmtId, long type, byte[] rawData) throws SQLException
SQLExceptionpublic void sendWithoutRep(Request request)
public boolean isClosed()
public void close()
close in interface AutoCloseablepublic static void checkConnection(Transport transport, int connectTimeout) throws SQLException
SQLExceptionpublic void shutdown()
Copyright © 2023. All rights reserved.