Interface EPFireAndForgetService
- All Known Implementing Classes:
EPFireAndForgetServiceImpl
public interface EPFireAndForgetService
Executes fire-and-forget non-continuous on-demand queries against named windows or tables.
Compile queries use the compile-query methods of the compiler.
-
Method Summary
Modifier and TypeMethodDescriptioncom.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult
executeQuery
(com.espertech.esper.common.client.EPCompiled compiled) Execute a fire-and-forget query.com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult
executeQuery
(com.espertech.esper.common.client.EPCompiled compiled, com.espertech.esper.common.client.context.ContextPartitionSelector[] selectors) Execute a fire-and-forget query for use with named windows and tables that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult
executeQuery
(com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized parameterizedQuery) Execute a fire-and-forget parameterized query.com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult
executeQuery
(com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized parameterizedQuery, com.espertech.esper.common.client.context.ContextPartitionSelector[] selectors) Execute a fire-and-forget parameterized query.com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQuery
prepareQuery
(com.espertech.esper.common.client.EPCompiled compiled) Prepare an unparameterized fire-and-forget query before execution and for repeated execution.com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized
prepareQueryWithParameters
(com.espertech.esper.common.client.EPCompiled compiled) Prepare a parameterized fire-and-forget query for repeated parameter setting and execution.
-
Method Details
-
executeQuery
com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult executeQuery(com.espertech.esper.common.client.EPCompiled compiled) Execute a fire-and-forget query.- Parameters:
compiled
- is the compiled EPL query to execute- Returns:
- query result
-
executeQuery
com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult executeQuery(com.espertech.esper.common.client.EPCompiled compiled, com.espertech.esper.common.client.context.ContextPartitionSelector[] selectors) Execute a fire-and-forget query for use with named windows and tables that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.- Parameters:
compiled
- is the compiled EPL query to executeselectors
- selects context partitions to consider- Returns:
- result
-
prepareQuery
com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQuery prepareQuery(com.espertech.esper.common.client.EPCompiled compiled) Prepare an unparameterized fire-and-forget query before execution and for repeated execution.Call
EPFireAndForgetPreparedQuery.close()
when done executing queries.- Parameters:
compiled
- is the compiled EPL query to prepare- Returns:
- proxy to execute upon, that also provides the event type of the returned results
-
prepareQueryWithParameters
com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized prepareQueryWithParameters(com.espertech.esper.common.client.EPCompiled compiled) Prepare a parameterized fire-and-forget query for repeated parameter setting and execution. Set all values on the returned holder then execute usingexecuteQuery(EPFireAndForgetPreparedQueryParameterized)
.Call
EPFireAndForgetPreparedQueryParameterized.close()
when done executing queries.- Parameters:
compiled
- is the compiled EPL query to prepare- Returns:
- parameter holder upon which to set values
-
executeQuery
com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult executeQuery(com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized parameterizedQuery) Execute a fire-and-forget parameterized query.- Parameters:
parameterizedQuery
- contains the query and parameter values- Returns:
- query result
-
executeQuery
com.espertech.esper.common.client.fireandforget.EPFireAndForgetQueryResult executeQuery(com.espertech.esper.common.client.fireandforget.EPFireAndForgetPreparedQueryParameterized parameterizedQuery, com.espertech.esper.common.client.context.ContextPartitionSelector[] selectors) Execute a fire-and-forget parameterized query.- Parameters:
parameterizedQuery
- contains the query and parameter valuesselectors
- selects context partitions to consider- Returns:
- query result
-