public class MethodPollingExecStrategyScript extends java.lang.Object implements PollExecStrategy
Constructor and Description |
---|
MethodPollingExecStrategyScript(ExprNodeScript scriptExpression) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Indicate we are no going to use this object again.
|
void |
done()
Indicate we are done polling and can release resources.
|
java.util.List<EventBean> |
poll(java.lang.Object[] lookupValues,
ExprEvaluatorContext exprEvaluatorContext)
Poll events using the keys provided.
|
void |
start()
Start the poll, called before any poll operation.
|
public MethodPollingExecStrategyScript(ExprNodeScript scriptExpression)
public void start()
PollExecStrategy
start
in interface PollExecStrategy
public java.util.List<EventBean> poll(java.lang.Object[] lookupValues, ExprEvaluatorContext exprEvaluatorContext)
PollExecStrategy
poll
in interface PollExecStrategy
lookupValues
- is keys for exeuting a query or suchexprEvaluatorContext
- contextpublic void done()
PollExecStrategy
done
in interface PollExecStrategy
public void destroy()
PollExecStrategy
destroy
in interface PollExecStrategy