public final class LongRunningQueryManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LONG_QUERY_ERROR_MSG |
static String |
LONG_QUERY_EXEC_MSG
Message about the long execution of the query.
|
static String |
LONG_QUERY_FINISHED_MSG |
| Constructor and Description |
|---|
LongRunningQueryManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
long |
getResultSetSizeThreshold() |
int |
getResultSetSizeThresholdMultiplier()
Gets result set size threshold multiplier.
|
long |
getTimeout() |
int |
getTimeoutMultiplier() |
void |
registerQuery(H2QueryInfo qryInfo) |
void |
setResultSetSizeThreshold(long rsSizeThreshold)
Sets threshold result's row count, when count of fetched rows is bigger than the threshold
warning will be printed.
|
void |
setResultSetSizeThresholdMultiplier(int rsSizeThresholdMult)
Sets result set size threshold multiplier.
|
void |
setTimeout(long timeout)
Sets timeout in milliseconds after which long query warning will be printed.
|
void |
setTimeoutMultiplier(int timeoutMult)
Sets long query timeout multiplier.
|
void |
stop() |
void |
unregisterQuery(H2QueryInfo qryInfo,
@Nullable Throwable err) |
public static final String LONG_QUERY_EXEC_MSG
public static final String LONG_QUERY_FINISHED_MSG
public static final String LONG_QUERY_ERROR_MSG
public LongRunningQueryManager(GridKernalContext ctx)
ctx - Kernal context.public void stop()
public void registerQuery(H2QueryInfo qryInfo)
qryInfo - Query info to register.public void unregisterQuery(H2QueryInfo qryInfo, @Nullable @Nullable Throwable err)
qryInfo - Query info to remove.err - Exception if query executed with error.public long getTimeout()
public void setTimeout(long timeout)
timeout - Timeout in milliseconds after which long query warning will be printed.public int getTimeoutMultiplier()
public void setTimeoutMultiplier(int timeoutMult)
timeoutMult - Long query timeout multiplier.public long getResultSetSizeThreshold()
public void setResultSetSizeThreshold(long rsSizeThreshold)
rsSizeThreshold - Threshold result's row count, when count of fetched rows is bigger than the threshold
warning will be printed.public int getResultSetSizeThresholdMultiplier()
public void setResultSetSizeThresholdMultiplier(int rsSizeThresholdMult)
rsSizeThresholdMult - Result set size threshold multiplier
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025