java.lang.Object com.ibm.broker.config.proxy.Subscription
public class Subscription
extends Object
Each Subscription object represents a single topic subscription on a broker. Subscription objects are returned as results from SubscriptionProxy queries.
com.ibm.broker.config.proxy.Subscription
|
|
Responsibilities | Represents a single read-only entry from the Subscription table. |
Internal Collaborators | None |
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ 25103.1 2004-04-22 HDMPL v6 Release
Method | Description |
---|---|
void delete(SubscriptionsProxy) | Asks the Configuration Manager to delete the supplied subscription. |
String getBroker() | Returns the broker field for the current subscription |
String getClient() | Returns the client field for the current subscription |
String getFilter() | Returns the filter field for the current subscription |
Date getRegistrationDate() | Returns the registration date for the current subscription |
Subscription getSubscriptionFromString(String) | Returns a new Subscription object that contains the information described in the encoded String. |
String getSubscriptionPoint() | Returns the subscription point field for the current subscription |
String getTopicName() | Returns the topicname field for the current subscription |
String getUser() | Returns the user field for the current subscription |
String toString() | Displays information on the subscription (for trace) |
public void delete(SubscriptionsProxy owningProxy) throws ConfigManagerProxyLoggedExceptionAsks the Configuration Manager to delete the supplied subscription.
Note: Any response message from the Configuration Manager resulting from this method will be sent to listeners of the ConfigManagerProxy object, because Subscriptions and SubscriptionsProxies cannot have AdministeredObjectListeners.
- Parameters
- owningProxy - Proxy that can be used to route the delete request to the Configuration Manager.
- Throws
ConfigManagerProxyLoggedException
If the request could not be sent to the Configuration Manager.
public String getBroker()Returns the broker field for the current subscription
- Returns
- String broker field
public String getClient()Returns the client field for the current subscription
- Returns
- String client field
public String getFilter()Returns the filter field for the current subscription
- Returns
- String filter field
public Date getRegistrationDate()Returns the registration date for the current subscription
- Returns
- Date registration date field
public static Subscription getSubscriptionFromString(String encodedData)Returns a new Subscription object that contains the information described in the encoded String.
- Parameters
- encodedData - String encoded in the format used by the SubscriptionsProxy.
- Returns
- Subscription Representation of the input string
public String getSubscriptionPoint()Returns the subscription point field for the current subscription
- Returns
- String subscription point field
public String getTopicName()Returns the topicname field for the current subscription
- Returns
- String Translated topicname field
public String getUser()Returns the user field for the current subscription
- Returns
- String user field
public String toString()Displays information on the subscription (for trace)
- Returns
- String The format is not guaranteed
- Overrides
- toString in class Object