|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.messaging.SubscriptionManager
public class SubscriptionManager
The SubscriptionManager monitors subscribed clients for MessageService and its subclasses, such as DataService.
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
SubscriptionManager(MessageDestination destination)
|
|
SubscriptionManager(MessageDestination destination,
boolean enableManagement)
|
|
| Method Summary | |
|---|---|
void |
addSubscriber(Object clientId,
String selector,
String subtopicString,
String endpointId)
|
void |
destroy()
Remove subscription information for all subscriptions during destroy. |
MessageClient |
getMessageClient(Object clientId,
String endpointId)
|
MessageClient |
getSubscriber(Object clientId)
Returns the requested subscriber. |
Set |
getSubscriberIds()
|
Set |
getSubscriberIds(Message message,
boolean evalSelector)
|
Set |
getSubscriberIds(String subtopicPattern,
Map messageHeaders)
|
Object |
getSubscriptionState()
Implement a serializer instance which wraps the subscription manager in a transient variable. |
long |
getSubscriptionTimeoutMillis()
|
MessageClient |
registerMessageClient(Object clientId,
String endpointId)
This method is used for subscribers who maintain client ids in their own subscription tables. |
void |
releaseMessageClient(MessageClient client)
|
void |
removeSubscriber(MessageClient client)
Removes the subscriber, unsubscribing it from all current subscriptions. |
void |
removeSubscriber(Object clientId,
String selector,
String subtopicString,
String endpointId)
|
void |
setId(String id)
Sets the id of the ManageableComponent. |
void |
setSubscriptionTimeoutMillis(long value)
|
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, initialize, isManaged, isStarted, isValid, setControl, setManaged, setParent, start, stop |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public SubscriptionManager(MessageDestination destination)
public SubscriptionManager(MessageDestination destination,
boolean enableManagement)
| Method Detail |
|---|
public void setId(String id)
ManageableComponentManageableComponent. The id cannot be
null and it cannot be changed after startup.
setId in class ManageableComponentid - The id of the ManageableComponent.public void destroy()
public void setSubscriptionTimeoutMillis(long value)
public long getSubscriptionTimeoutMillis()
public Object getSubscriptionState()
public Set getSubscriberIds()
public Set getSubscriberIds(Message message,
boolean evalSelector)
public Set getSubscriberIds(String subtopicPattern,
Map messageHeaders)
public MessageClient getSubscriber(Object clientId)
clientId - The clientId of the target subscriber.
public void removeSubscriber(MessageClient client)
public void addSubscriber(Object clientId,
String selector,
String subtopicString,
String endpointId)
public void removeSubscriber(Object clientId,
String selector,
String subtopicString,
String endpointId)
public MessageClient registerMessageClient(Object clientId,
String endpointId)
public MessageClient getMessageClient(Object clientId,
String endpointId)
public void releaseMessageClient(MessageClient client)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/messaging/SubscriptionManager.html