|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencredo.esper.EsperStatement
public class EsperStatement
Implements a set of convenient Template operations around
a native Esper Statement.
Support both the push (via listener or subscriber) or pull
(via the template methods) operations to retrieve results
from the associated statement.
For more information on push and pull operations on esper statements,
see http://esper.codehaus.org/esper-3.3.0/doc/reference/en/html/api.html#api-receive-results
| Constructor Summary | |
|---|---|
EsperStatement(java.lang.String epl)
|
|
| Method Summary | ||
|---|---|---|
void |
addListener(com.espertech.esper.client.UpdateListener listener)
Adds an {@link UpdateListener) to the statement to support the 'push' mode of retrieving results. |
|
|
concurrentSafeQuery(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement. |
|
|
concurrentSafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement. |
|
|
concurrentUnsafeQuery(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency unsafe 'pull' (i.e. |
|
|
concurrentUnsafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency unsafe 'pull' (i.e. |
|
void |
doWithNativeEPStatement(NativeEPStatementCallback callback)
Provides a mechanism by which to access the underlying esper API |
|
java.lang.String |
getEPL()
|
|
java.util.Set<com.espertech.esper.client.UpdateListener> |
getListeners()
|
|
com.espertech.esper.client.EPStatementState |
getState()
|
|
void |
setListeners(java.util.Set<com.espertech.esper.client.UpdateListener> listeners)
|
|
void |
setSubscriber(java.lang.Object subscriber)
|
|
void |
start()
Starts events being collated according to the statement's filter query |
|
void |
stop()
Stops the underlying native statement from applying its filter query. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EsperStatement(java.lang.String epl)
| Method Detail |
|---|
public java.lang.String getEPL()
public com.espertech.esper.client.EPStatementState getState()
public void start()
public void stop()
public void doWithNativeEPStatement(NativeEPStatementCallback callback)
callback - used to pass access to the underlying esper API resourcespublic void setListeners(java.util.Set<com.espertech.esper.client.UpdateListener> listeners)
public java.util.Set<com.espertech.esper.client.UpdateListener> getListeners()
public void setSubscriber(java.lang.Object subscriber)
public void addListener(com.espertech.esper.client.UpdateListener listener)
listener - The listener to be invoked when appropriate results according to the EPL filter query.public <T> java.util.List<T> concurrentSafeQuery(ParameterizedEsperRowMapper<T> rm)
EsperStatementOperationsParameterizedEsperRowMapper is then used to populate the objects
that are then collected together and returned as a List.
concurrentSafeQuery in interface EsperStatementOperationsrm - the ParameterizedEsperRowMapper to use for result
mapping
public <T> T concurrentSafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
EsperStatementOperations
concurrentSafeQueryForObject in interface EsperStatementOperationsrm - the ParameterizedEsperRowMapper to use for result
mapping
public <T> java.util.List<T> concurrentUnsafeQuery(ParameterizedEsperRowMapper<T> rm)
EsperStatementOperationsParameterizedEsperRowMapper is then
used to populate the objects that are then collected together and
returned as a List.
concurrentUnsafeQuery in interface EsperStatementOperationsrm - the ParameterizedEsperRowMapper to use for result
mapping
public <T> T concurrentUnsafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
EsperStatementOperationsParameterizedEsperRowMapper is then used to populate
the object that is returned.
concurrentUnsafeQueryForObject in interface EsperStatementOperationsrm - the ParameterizedEsperRowMapper to use for result
mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||