com.espertech.esperio.subscription
Class BaseSubscription

java.lang.Object
  extended by com.espertech.esperio.subscription.BaseSubscription
All Implemented Interfaces:
com.espertech.esper.filter.FilterHandle, com.espertech.esper.filter.FilterHandleCallback, Subscription
Direct Known Subclasses:
JMSSubscription

public abstract class BaseSubscription
extends Object
implements Subscription, com.espertech.esper.filter.FilterHandleCallback

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(com.espertech.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

adapter

protected OutputAdapter adapter
The output adapter to which the subscription applies.


eventTypeAlias

protected String eventTypeAlias
The event type of the events we are subscribing for.


subscriptionName

protected String subscriptionName
The name of the subscription.

Constructor Detail

BaseSubscription

public BaseSubscription()
Ctor, assigns default name.

Method Detail

matchFound

public abstract void matchFound(com.espertech.esper.event.EventBean event)
Specified by:
matchFound in interface com.espertech.esper.filter.FilterHandleCallback

setSubscriptionName

public void setSubscriptionName(String subscriptionName)
Description copied from interface: Subscription
Sets the subscription name.

Specified by:
setSubscriptionName in interface Subscription
Parameters:
subscriptionName - is the subscription name

getSubscriptionName

public String getSubscriptionName()
Description copied from interface: Subscription
Returns the subscription name.

Specified by:
getSubscriptionName in interface Subscription
Returns:
subscription name

getEventTypeAlias

public String getEventTypeAlias()
Description copied from interface: Subscription
Returns the type name of the event type we are looking for.

Specified by:
getEventTypeAlias in interface Subscription
Returns:
event type alias

setEventTypeAlias

public void setEventTypeAlias(String eventTypeAlias)
Set the event type name we are looking for.

Parameters:
eventTypeAlias - is a type name

getAdapter

public OutputAdapter getAdapter()
Description copied from interface: Subscription
Returns the output adapter this subscription is associated with.

Specified by:
getAdapter in interface Subscription
Returns:
output adapter

registerAdapter

public void registerAdapter(OutputAdapter adapter)
Description copied from interface: Subscription
Sets the output adapter this subscription is associated with.

Specified by:
registerAdapter in interface Subscription
Parameters:
adapter - to set

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com