Class SetTimeoutStatementBuilder.SetTimeoutStatement
java.lang.Object
com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder.AbstractStatement
com.tangosol.coherence.dslquery.queryplus.SetTimeoutStatementBuilder.SetTimeoutStatement
- All Implemented Interfaces:
Statement
- Enclosing class:
SetTimeoutStatementBuilder
public class SetTimeoutStatementBuilder.SetTimeoutStatement
extends AbstractQueryPlusStatementBuilder.AbstractStatement
The implementation of the QueryPlus "ALTER SESSION SET TIMEOUT" statement.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.oracle.coherence.common.util.Duration
The name of the timeout to set as the current timeout. -
Constructor Summary
ConstructorDescriptionSetTimeoutStatement
(com.oracle.coherence.common.util.Duration timeout) Construct a SetTimeoutStatement that will set the current timeout used by the QueryPlus session to the specified timeout. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(ExecutionContext ctx) Set the current timeout to be used by the CohQL session.Methods inherited from class com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder.AbstractStatement
getExecutionConfirmation, sanityCheck, showPlan
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.coherence.dslquery.Statement
executeAsync, isManagingTimeout
-
Field Details
-
f_durationTimeout
protected final com.oracle.coherence.common.util.Duration f_durationTimeoutThe name of the timeout to set as the current timeout.
-
-
Constructor Details
-
SetTimeoutStatement
public SetTimeoutStatement(com.oracle.coherence.common.util.Duration timeout) Construct a SetTimeoutStatement that will set the current timeout used by the QueryPlus session to the specified timeout.- Parameters:
timeout
- the value to set for the statement timeout
-
-
Method Details
-
execute
Set the current timeout to be used by the CohQL session.- Parameters:
ctx
- thecontext
to use- Returns:
- Always returns
StatementResult.NULL_RESULT
-