public abstract class BaseSubscription extends Object implements Subscription, FilterHandleCallback
Modifier and Type | Field and Description |
---|---|
protected OutputAdapter |
adapter
The output adapter to which the subscription applies.
|
protected String |
eventTypeName
The event type of the events we are subscribing for.
|
protected 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.
|
String |
getEventTypeName()
Returns the type name of the event type we are looking for.
|
String |
getSubscriptionName()
Returns the subscription name.
|
abstract void |
matchFound(EventBean theEvent,
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(String eventTypeName)
Set the event type name we are looking for.
|
void |
setSubscriptionName(String subscriptionName)
Sets the subscription name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSubSelect
getStatementId
protected OutputAdapter adapter
protected String eventTypeName
protected String subscriptionName
public abstract void matchFound(EventBean theEvent, 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(String subscriptionName)
Subscription
setSubscriptionName
in interface Subscription
subscriptionName
- is the subscription namepublic String getSubscriptionName()
Subscription
getSubscriptionName
in interface Subscription
public String getEventTypeName()
Subscription
getEventTypeName
in interface Subscription
public void seteventTypeName(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