|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.adapter.BaseSubscription
public abstract class BaseSubscription
Subscription is a concept for selecting events for processing out of all events available from an engine instance.
Field Summary | |
---|---|
protected OutputAdapter |
adapter
The output adapter to which the subscription applies. |
protected java.lang.String |
eventTypeName
The event type of the events we are subscribing for. |
protected java.lang.String |
subscriptionName
The name of the subscription. |
Constructor Summary | |
---|---|
BaseSubscription()
Ctor, assigns default name. |
Method Summary | |
---|---|
OutputAdapter |
getAdapter()
Returns the output adapter this subscription is associated with. |
java.lang.String |
getEventTypeName()
Returns the type name of the event type we are looking for. |
java.lang.String |
getSubscriptionName()
Returns the subscription name. |
abstract void |
matchFound(EventBean theEvent,
java.util.Collection<FilterHandleCallback> allStmtMatches)
Indicate that an event was evaluated by the FilterService
which matches the filter specification FilterSpecCompiled associated with this callback. |
void |
registerAdapter(EPServiceProvider epService)
Register an adapter. |
void |
registerAdapter(OutputAdapter adapter)
Sets the output adapter this subscription is associated with. |
void |
seteventTypeName(java.lang.String eventTypeName)
Set the event type name we are looking for. |
void |
setSubscriptionName(java.lang.String subscriptionName)
Sets the subscription name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.filter.FilterHandleCallback |
---|
isSubSelect |
Methods inherited from interface com.espertech.esper.filter.FilterHandle |
---|
getStatementId |
Field Detail |
---|
protected OutputAdapter adapter
protected java.lang.String eventTypeName
protected java.lang.String subscriptionName
Constructor Detail |
---|
public BaseSubscription()
Method Detail |
---|
public abstract void matchFound(EventBean theEvent, java.util.Collection<FilterHandleCallback> allStmtMatches)
FilterHandleCallback
FilterService
which matches the filter specification FilterSpecCompiled
associated with this callback.
matchFound
in interface FilterHandleCallback
theEvent
- - the event received that matches the filter specificationpublic void setSubscriptionName(java.lang.String subscriptionName)
Subscription
setSubscriptionName
in interface Subscription
subscriptionName
- is the subscription namepublic java.lang.String getSubscriptionName()
Subscription
getSubscriptionName
in interface Subscription
public java.lang.String getEventTypeName()
Subscription
getEventTypeName
in interface Subscription
public void seteventTypeName(java.lang.String eventTypeName)
eventTypeName
- is a type namepublic OutputAdapter getAdapter()
Subscription
getAdapter
in interface Subscription
public void registerAdapter(OutputAdapter adapter)
Subscription
registerAdapter
in interface Subscription
adapter
- to setpublic void registerAdapter(EPServiceProvider epService)
epService
- engine
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |