public abstract class MethodPollingExecStrategyBase extends Object implements PollExecStrategy
Modifier and Type | Field and Description |
---|---|
protected EventAdapterService |
eventAdapterService |
protected EventType |
eventType |
protected Object |
invocationTarget |
protected net.sf.cglib.reflect.FastMethod |
method |
protected MethodPollingExecStrategyEnum |
strategy |
protected String |
variableName |
protected VariableReader |
variableReader |
protected VariableService |
variableService |
Constructor and Description |
---|
MethodPollingExecStrategyBase(EventAdapterService eventAdapterService,
net.sf.cglib.reflect.FastMethod method,
EventType eventType,
Object invocationTarget,
MethodPollingExecStrategyEnum strategy,
VariableReader variableReader,
String variableName,
VariableService variableService) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkNonNullArrayValue(Object value) |
void |
destroy()
Indicate we are no going to use this object again.
|
void |
done()
Indicate we are done polling and can release resources.
|
protected abstract List<EventBean> |
handleResult(Object invocationResult) |
List<EventBean> |
poll(Object[] lookupValues,
ExprEvaluatorContext exprEvaluatorContext)
Poll events using the keys provided.
|
void |
start()
Start the poll, called before any poll operation.
|
protected final EventAdapterService eventAdapterService
protected final net.sf.cglib.reflect.FastMethod method
protected final EventType eventType
protected final Object invocationTarget
protected final MethodPollingExecStrategyEnum strategy
protected final VariableReader variableReader
protected final String variableName
protected final VariableService variableService
public MethodPollingExecStrategyBase(EventAdapterService eventAdapterService, net.sf.cglib.reflect.FastMethod method, EventType eventType, Object invocationTarget, MethodPollingExecStrategyEnum strategy, VariableReader variableReader, String variableName, VariableService variableService)
protected boolean checkNonNullArrayValue(Object value)
public void start()
PollExecStrategy
start
in interface PollExecStrategy
public void done()
PollExecStrategy
done
in interface PollExecStrategy
public void destroy()
PollExecStrategy
destroy
in interface PollExecStrategy
public List<EventBean> poll(Object[] lookupValues, ExprEvaluatorContext exprEvaluatorContext)
PollExecStrategy
poll
in interface PollExecStrategy
lookupValues
- is keys for exeuting a query or suchexprEvaluatorContext
- context