com.espertech.esper.epl.core
Class MethodPollingExecStrategyBase

java.lang.Object
  extended by com.espertech.esper.epl.core.MethodPollingExecStrategyBase
All Implemented Interfaces:
PollExecStrategy
Direct Known Subclasses:
MethodPollingExecStrategyBaseArray, MethodPollingExecStrategyMapPlain, MethodPollingExecStrategyOAPlain, MethodPollingExecStrategyPOJOPlain

public abstract class MethodPollingExecStrategyBase
extends java.lang.Object
implements PollExecStrategy

Viewable providing historical data from a database.


Field Summary
protected  EventAdapterService eventAdapterService
           
protected  EventType eventType
           
protected  net.sf.cglib.reflect.FastMethod method
           
 
Constructor Summary
MethodPollingExecStrategyBase(EventAdapterService eventAdapterService, net.sf.cglib.reflect.FastMethod method, EventType eventType)
           
 
Method Summary
protected  boolean checkNonNullArrayValue(java.lang.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  java.util.List<EventBean> handleResult(java.lang.Object invocationResult)
           
 java.util.List<EventBean> poll(java.lang.Object[] lookupValues)
          Poll events using the keys provided.
 void start()
          Start the poll, called before any poll operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventAdapterService

protected final EventAdapterService eventAdapterService

method

protected final net.sf.cglib.reflect.FastMethod method

eventType

protected final EventType eventType
Constructor Detail

MethodPollingExecStrategyBase

public MethodPollingExecStrategyBase(EventAdapterService eventAdapterService,
                                     net.sf.cglib.reflect.FastMethod method,
                                     EventType eventType)
Method Detail

handleResult

protected abstract java.util.List<EventBean> handleResult(java.lang.Object invocationResult)

checkNonNullArrayValue

protected boolean checkNonNullArrayValue(java.lang.Object value)

start

public void start()
Description copied from interface: PollExecStrategy
Start the poll, called before any poll operation.

Specified by:
start in interface PollExecStrategy

done

public void done()
Description copied from interface: PollExecStrategy
Indicate we are done polling and can release resources.

Specified by:
done in interface PollExecStrategy

destroy

public void destroy()
Description copied from interface: PollExecStrategy
Indicate we are no going to use this object again.

Specified by:
destroy in interface PollExecStrategy

poll

public java.util.List<EventBean> poll(java.lang.Object[] lookupValues)
Description copied from interface: PollExecStrategy
Poll events using the keys provided.

Specified by:
poll in interface PollExecStrategy
Parameters:
lookupValues - is keys for exeuting a query or such
Returns:
a list of events for the keys

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com