public class DefaultInMemorySubscriptionManager extends Object implements org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
Constructor and Description |
---|
DefaultInMemorySubscriptionManager() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(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() |
String |
getPropertyValue(String name) |
List<org.wso2.eventing.Subscription> |
getStaticSubscriptions() |
org.wso2.eventing.Subscription |
getStatus(String s) |
org.wso2.eventing.Subscription |
getSubscription(String id) |
List<org.wso2.eventing.Subscription> |
getSubscriptions() |
void |
init() |
boolean |
renew(org.wso2.eventing.Subscription subscription) |
String |
subscribe(org.wso2.eventing.Subscription subscription) |
boolean |
unsubscribe(String id) |
public List<org.wso2.eventing.Subscription> getStaticSubscriptions()
getStaticSubscriptions
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
public String subscribe(org.wso2.eventing.Subscription subscription) throws org.wso2.eventing.exceptions.EventException
subscribe
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public boolean unsubscribe(String id) throws org.wso2.eventing.exceptions.EventException
unsubscribe
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public boolean renew(org.wso2.eventing.Subscription subscription) throws org.wso2.eventing.exceptions.EventException
renew
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public List<org.wso2.eventing.Subscription> getSubscriptions() throws org.wso2.eventing.exceptions.EventException
getSubscriptions
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public List<org.wso2.eventing.Subscription> getAllSubscriptions() throws org.wso2.eventing.exceptions.EventException
getAllSubscriptions
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public List<org.wso2.eventing.Subscription> getMatchingSubscriptions(org.wso2.eventing.Event<org.apache.axis2.context.MessageContext> event) throws org.wso2.eventing.exceptions.EventException
getMatchingSubscriptions
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public org.wso2.eventing.Subscription getSubscription(String id)
getSubscription
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
public org.wso2.eventing.Subscription getStatus(String s) throws org.wso2.eventing.exceptions.EventException
getStatus
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
org.wso2.eventing.exceptions.EventException
public void init()
init
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
public void addProperty(String name, String value)
addProperty
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
public Collection<String> getPropertyNames()
getPropertyNames
in interface org.wso2.eventing.SubscriptionManager<org.apache.axis2.context.MessageContext>
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.