public class WSRetryableStmt extends WSStatement
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
batchInsertedRows |
protected SQLException |
lastError |
protected ConnectionParam |
param |
protected StmtInfo |
stmtInfo |
closed, database, resultSet, transport, zoneIdaffectedRows, batchedArgs, instanceIdCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
WSRetryableStmt(AbstractConnection connection,
ConnectionParam param,
String database,
Transport transport,
Long instanceId,
StmtInfo stmtInfo,
AtomicInteger batchInsertedRows) |
| Modifier and Type | Method and Description |
|---|---|
void |
initStmt(int retryTimes) |
ResultResp |
queryWithRetry(io.netty.buffer.ByteBuf rawBlock) |
void |
releaseStmt() |
void |
writeBlockWithRetry(io.netty.buffer.ByteBuf rawBlock) |
void |
writeBlockWithRetrySync(io.netty.buffer.ByteBuf rawBlock) |
checkBlobSupport, close, execute, execute, executeQuery, executeQuery, executeUpdate, executeUpdate, getConnection, getQueryTimeout, getResultSet, getUpdateCount, isClosed, setQueryTimeoutaddBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getInstanceId, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolableisWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsisWrapperFor, unwrapprotected final ConnectionParam param
protected StmtInfo stmtInfo
protected volatile SQLException lastError
protected final AtomicInteger batchInsertedRows
public WSRetryableStmt(AbstractConnection connection, ConnectionParam param, String database, Transport transport, Long instanceId, StmtInfo stmtInfo, AtomicInteger batchInsertedRows)
public void initStmt(int retryTimes)
throws SQLException
SQLExceptionpublic void writeBlockWithRetry(io.netty.buffer.ByteBuf rawBlock)
throws SQLException
SQLExceptionpublic void writeBlockWithRetrySync(io.netty.buffer.ByteBuf rawBlock)
throws SQLException
SQLExceptionpublic ResultResp queryWithRetry(io.netty.buffer.ByteBuf rawBlock) throws SQLException
SQLExceptionpublic void releaseStmt()
throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.