com.espertech.esper.adapter
Interface Subscription

All Known Implementing Classes:
BaseSubscription

public interface Subscription

Subscriptions are associated with an output adapter and dictate which events are sent to a given adapter.


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.
 void registerAdapter(OutputAdapter adapter)
          Sets the output adapter this subscription is associated with.
 void setSubscriptionName(java.lang.String name)
          Sets the subscription name.
 

Method Detail

getSubscriptionName

java.lang.String getSubscriptionName()
Returns the subscription name.

Returns:
subscription name

setSubscriptionName

void setSubscriptionName(java.lang.String name)
Sets the subscription name.

Parameters:
name - is the subscription name

getEventTypeName

java.lang.String getEventTypeName()
Returns the type name of the event type we are looking for.

Returns:
event type name

getAdapter

OutputAdapter getAdapter()
Returns the output adapter this subscription is associated with.

Returns:
output adapter

registerAdapter

void registerAdapter(OutputAdapter adapter)
Sets the output adapter this subscription is associated with.

Parameters:
adapter - to set

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com