public abstract class BaseSubscription extends java.lang.Object implements Subscription, FilterHandleCallback
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BaseSubscription()
Ctor, assigns default name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSubSelect
getStatementId
protected OutputAdapter adapter
protected java.lang.String eventTypeName
protected java.lang.String subscriptionName
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 specificationallStmtMatches
- - collection of matches that represent all matches for the same statementpublic 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