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
Fields Modifier and Type Field Description protected com.oracle.coherence.common.util.Duration
f_durationTimeout
The name of the timeout to set as the current timeout.
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementResult
execute(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
-
-
-
-
Constructor Detail
-
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 Detail
-
execute
public StatementResult execute(ExecutionContext ctx)
Set the current timeout to be used by the CohQL session.- Parameters:
ctx
- thecontext
to use- Returns:
- Always returns
StatementResult.NULL_RESULT
-
-