Class DefaultInMemorySubscriptionManager
- java.lang.Object
-
- org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager
-
- All Implemented Interfaces:
org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
public class DefaultInMemorySubscriptionManager extends Object implements org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
-
Constructor Summary
Constructors Constructor Description DefaultInMemorySubscriptionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String name, String value)List<org.wso2.eventing.Subscription>getAllSubscriptions()List<org.wso2.eventing.Subscription>getMatchingSubscriptions(org.wso2.eventing.Event<org.apache.axis2.context.MessageContext> event)Collection<String>getPropertyNames()StringgetPropertyValue(String name)List<org.wso2.eventing.Subscription>getStaticSubscriptions()org.wso2.eventing.SubscriptiongetStatus(String s)org.wso2.eventing.SubscriptiongetSubscription(String id)List<org.wso2.eventing.Subscription>getSubscriptions()voidinit()booleanrenew(org.wso2.eventing.Subscription subscription)Stringsubscribe(org.wso2.eventing.Subscription subscription)booleanunsubscribe(String id)
-
-
-
Method Detail
-
getStaticSubscriptions
public List<org.wso2.eventing.Subscription> getStaticSubscriptions()
- Specified by:
getStaticSubscriptionsin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
subscribe
public String subscribe(org.wso2.eventing.Subscription subscription) throws org.wso2.eventing.exceptions.EventException
- Specified by:
subscribein interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
unsubscribe
public boolean unsubscribe(String id) throws org.wso2.eventing.exceptions.EventException
- Specified by:
unsubscribein interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
renew
public boolean renew(org.wso2.eventing.Subscription subscription) throws org.wso2.eventing.exceptions.EventException- Specified by:
renewin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
getSubscriptions
public List<org.wso2.eventing.Subscription> getSubscriptions() throws org.wso2.eventing.exceptions.EventException
- Specified by:
getSubscriptionsin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
getAllSubscriptions
public List<org.wso2.eventing.Subscription> getAllSubscriptions() throws org.wso2.eventing.exceptions.EventException
- Specified by:
getAllSubscriptionsin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
getMatchingSubscriptions
public List<org.wso2.eventing.Subscription> getMatchingSubscriptions(org.wso2.eventing.Event<org.apache.axis2.context.MessageContext> event) throws org.wso2.eventing.exceptions.EventException
- Specified by:
getMatchingSubscriptionsin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
getSubscription
public org.wso2.eventing.Subscription getSubscription(String id)
- Specified by:
getSubscriptionin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
getStatus
public org.wso2.eventing.Subscription getStatus(String s) throws org.wso2.eventing.exceptions.EventException
- Specified by:
getStatusin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>- Throws:
org.wso2.eventing.exceptions.EventException
-
init
public void init()
- Specified by:
initin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
addProperty
public void addProperty(String name, String value)
- Specified by:
addPropertyin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
getPropertyNames
public Collection<String> getPropertyNames()
- Specified by:
getPropertyNamesin interfaceorg.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
-
-