public class MessageDestinationFactory extends AbstractDestinationFactory
The destination will be exposed to the Flex client as a BlazeDS MessageDestination. By default, the id of the
destination will be the same as the bean name of this factory. This may be overridden using the
'destinationId' property.
MessageBrokerFactoryBean| Constructor and Description |
|---|
MessageDestinationFactory()
Creates a new MessageDestinationFactory
|
MessageDestinationFactory(flex.messaging.config.ConfigMap properties)
Creates a new MessageDestinationFactory with the specified properties
ConfigMap |
| Modifier and Type | Method and Description |
|---|---|
protected flex.messaging.Destination |
createDestination(String destinationId,
flex.messaging.MessageBroker broker)
Create a specific destination and add it to the
MessageBroker |
protected void |
destroyDestination(String destinationId,
flex.messaging.MessageBroker broker)
Stops and removes the specified destination from the
MessageBroker |
flex.messaging.config.ConfigMap |
getProperties()
Returns the properties
ConfigMap for the destination |
protected flex.messaging.services.Service |
getTargetService(flex.messaging.MessageBroker broker)
Returns the target
Service that will manage the destination |
protected void |
initializeDestination(flex.messaging.Destination destination)
Perform any necessary initialization logic on the created
Destination |
void |
setAllowSubtopics(String allow) |
void |
setClusterMessageRouting(String routingType) |
void |
setClusterRef(String clusterRef) |
void |
setDisallowWildcardSubtopics(String disallow) |
void |
setMessageTimeToLive(String timeToLive) |
void |
setSendSecurityConstraint(String constraint) |
void |
setSubscribeSecurityConstraint(String constraint) |
void |
setSubscriptionTimeoutMinutes(String timeout) |
void |
setSubtopicSeparator(String separator) |
void |
setThrottleInboundMaxFrequency(String maxFrequency) |
void |
setThrottleInboundPolicy(String policy) |
void |
setThrottleOutboundMaxFrequency(String maxFrequency) |
void |
setThrottleOutboundPolicy(String policy) |
afterPropertiesSet, configureAdapter, destroy, getBeanFactory, getDestinationId, setBeanFactory, setBeanName, setChannels, setDestinationId, setMessageBroker, setServiceAdapter, setServletConfigpublic MessageDestinationFactory()
public MessageDestinationFactory(flex.messaging.config.ConfigMap properties)
ConfigMapproperties - the properties map for the destinationpublic flex.messaging.config.ConfigMap getProperties()
ConfigMap for the destinationpublic void setAllowSubtopics(String allow)
public void setClusterMessageRouting(String routingType)
public void setClusterRef(String clusterRef)
public void setDisallowWildcardSubtopics(String disallow)
public void setMessageTimeToLive(String timeToLive)
public void setSendSecurityConstraint(String constraint)
public void setSubscribeSecurityConstraint(String constraint)
public void setSubscriptionTimeoutMinutes(String timeout)
public void setSubtopicSeparator(String separator)
public void setThrottleInboundMaxFrequency(String maxFrequency)
public void setThrottleInboundPolicy(String policy)
public void setThrottleOutboundMaxFrequency(String maxFrequency)
public void setThrottleOutboundPolicy(String policy)
protected flex.messaging.Destination createDestination(String destinationId, flex.messaging.MessageBroker broker) throws Exception
MessageBrokercreateDestination in class AbstractDestinationFactorydestinationId - the id of the destination to createbroker - the MessageBroker where the destination should be createdException - if the destination could not be created successfullyprotected void destroyDestination(String destinationId, flex.messaging.MessageBroker broker)
MessageBrokerdestroyDestination in class AbstractDestinationFactorydestinationId - the id of the destination being destroyedbroker - the MessageBroker from which the destination must be removedprotected flex.messaging.services.Service getTargetService(flex.messaging.MessageBroker broker)
Service that will manage the destinationgetTargetService in class AbstractDestinationFactorybroker - the MessageBroker that controls the serviceprotected void initializeDestination(flex.messaging.Destination destination)
DestinationinitializeDestination in class AbstractDestinationFactorydestination - the created destinationCopyright © 2014. All rights reserved.