|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.adapter.subscription.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 String |
eventTypeAlias
The event type of the events we are subscribing for. |
protected 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. |
String |
getEventTypeAlias()
Returns the type name of the event type we are looking for. |
String |
getSubscriptionName()
Returns the subscription name. |
abstract void |
matchFound(net.esper.event.EventBean event)
|
void |
registerAdapter(OutputAdapter adapter)
Sets the output adapter this subscription is associated with. |
void |
setEventTypeAlias(String eventTypeAlias)
Set the event type name we are looking for. |
void |
setSubscriptionName(String subscriptionName)
Sets the subscription name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OutputAdapter adapter
protected String eventTypeAlias
protected String subscriptionName
Constructor Detail |
---|
public BaseSubscription()
Method Detail |
---|
public abstract void matchFound(net.esper.event.EventBean event)
matchFound
in interface net.esper.filter.FilterHandleCallback
public void setSubscriptionName(String subscriptionName)
Subscription
setSubscriptionName
in interface Subscription
subscriptionName
- is the subscription namepublic String getSubscriptionName()
Subscription
getSubscriptionName
in interface Subscription
public String getEventTypeAlias()
Subscription
getEventTypeAlias
in interface Subscription
public void setEventTypeAlias(String eventTypeAlias)
eventTypeAlias
- is a type namepublic OutputAdapter getAdapter()
Subscription
getAdapter
in interface Subscription
public void registerAdapter(OutputAdapter adapter)
Subscription
registerAdapter
in interface Subscription
adapter
- to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |