public interface SubscriptionManagerService
Modifier and Type | Method and Description |
---|---|
void |
closeSubscription(String subscriptionID,
String destination,
String protocolType,
String destinationType)
Close subscription by subscriptionID.
|
List<Subscription> |
getAllSubscriptions() |
List<Subscription> |
getFilteredSubscriptions(boolean isDurable,
boolean isActive,
String protocolType,
String destinationType,
String filteredNamePattern,
boolean isFilteredNameByExactMatch,
String identifierPattern,
boolean isIdentifierPatternByExactMatch,
String ownNodeId,
int pageNumber,
int subscriptionCountPerPage)
Retrieve all matching subscriptions from andes for the given search criteria.
|
long |
getPendingMessageCount(String queueName)
Get the pending message count for the specified subscription.
|
List<Subscription> |
getSubscriptions(String isDurable,
String isActive,
String protocolType,
String destinationType)
Retrieve all matching subscriptions from andes for the given criteria.
|
int |
getTotalSubscriptionCountForSearchResult(boolean isDurable,
boolean isActive,
String protocolType,
String destinationType,
String filteredNamePattern,
boolean isFilteredNameByExactMatch,
String identifierPattern,
boolean isIdentifierPatternByExactMatch,
String ownNodeId)
Returns the total subscription count matching to a particular search criteria.
|
List<Subscription> getAllSubscriptions() throws SubscriptionManagerException
SubscriptionManagerException
List<Subscription> getSubscriptions(String isDurable, String isActive, String protocolType, String destinationType) throws SubscriptionManagerException
isDurable
- Retrieve durable subscriptions (can be true/false)isActive
- Retrieve active subscriptions (can be true/false/*, * meaning any)protocolType
- The protocol type of the subscriptions to retrievedestinationType
- The destination type of the subscriptions to retrieveSubscriptionManagerException
long getPendingMessageCount(String queueName) throws SubscriptionManagerException
queueName
- for which the pending message count need to be calculatedSubscriptionManagerException
List<Subscription> getFilteredSubscriptions(boolean isDurable, boolean isActive, String protocolType, String destinationType, String filteredNamePattern, boolean isFilteredNameByExactMatch, String identifierPattern, boolean isIdentifierPatternByExactMatch, String ownNodeId, int pageNumber, int subscriptionCountPerPage) throws SubscriptionManagerException
isDurable
- are the subscriptions to be retrieve durable (true/ false)isActive
- are the subscriptions to be retrieved active (true/false)protocolType
- the protocol type of the subscriptions to be retrieveddestinationType
- the destination type of the subscriptions to be retrievedfilteredNamePattern
- queue or topic name pattern to search the subscriptions ("" for all)isFilteredNameByExactMatch
- exactly match the name or notidentifierPattern
- identifier pattern to search the subscriptions ("" for all)isIdentifierPatternByExactMatch
- exactly match the identifier or notownNodeId
- node Id of the node which own the subscriptionspageNumber
- page number in the pagination tablesubscriptionCountPerPage
- number of subscriptions to be shown in the UI per pageSubscriptionManagerException
- throws when an error occursint getTotalSubscriptionCountForSearchResult(boolean isDurable, boolean isActive, String protocolType, String destinationType, String filteredNamePattern, boolean isFilteredNameByExactMatch, String identifierPattern, boolean isIdentifierPatternByExactMatch, String ownNodeId) throws SubscriptionManagerException
isDurable
- are the subscriptions to be retrieve durable (true/ false)isActive
- are the subscriptions to be retrieved active (true/false)protocolType
- the protocol type of the subscriptions to be retrieveddestinationType
- the destination type of the subscriptions to be retrievedfilteredNamePattern
- queue or topic name pattern to search the subscriptions ("" for all)isFilteredNameByExactMatch
- exactly match the name or notidentifierPattern
- identifier pattern to search the subscriptions ("" for all)isIdentifierPatternByExactMatch
- exactly match the identifier or notownNodeId
- node Id of the node which own the subscriptionsSubscriptionManagerException
- throws when an error occursvoid closeSubscription(String subscriptionID, String destination, String protocolType, String destinationType) throws SubscriptionManagerException
subscriptionID
- ID of the subscription to closedestination
- queue/topic name of subscribed destinationprotocolType
- The protocol type of the subscriptions to closedestinationType
- The destination type of the subscriptions to closeSubscriptionManagerException
Copyright © 2017 WSO2. All rights reserved.