Package flex.management.runtime.messaging

Examples of flex.management.runtime.messaging.MessageDestinationControl


     *
     * @param service The <code>Service</code> that manages this <code>MessageDestination</code>.
     */
    protected void setupDestinationControl(Service service)
    {
        controller = new MessageDestinationControl(this, service.getControl());
        controller.register();
        setControl(controller);
        setupThrottleManagerControl(controller);
        setupSubscriptionManagerControl(controller);
    }
View Full Code Here


        if (isManaged())
        {
            MessageDestination destination = (MessageDestination)getDestination(message.getDestination());
            if (destination != null && destination.isManaged())
            {
                MessageDestinationControl destinationControl = (MessageDestinationControl)destination.getControl();
                if (destinationControl != null) // Should not happen but just in case.
                    destinationControl.incrementServiceMessageFromAdapterCount();
            }
        }

        // in this service's case, this invocation occurs when an adapter has asynchronously
        // received a message from one of its adapters acting as a consumer
View Full Code Here

        if (isManaged())
        {
            MessageDestination destination = (MessageDestination)getDestination(message.getDestination());
            if (destination != null && destination.isManaged())
            {
                MessageDestinationControl destinationControl = (MessageDestinationControl)destination.getControl();
                if (destinationControl != null) // Should not happen but just in case.
                {
                    if (commandMessage)
                        destinationControl.incrementServiceCommandCount();
                    else
                        destinationControl.incrementServiceMessageCount();
                }
            }
        }
    }
View Full Code Here

     */
    public void serviceMessageFromAdapter(Message message, boolean sendToAllSubscribers)
    {
        if (isManaged())
        {
            MessageDestinationControl control = (MessageDestinationControl)getDestination(message.getDestination()).getControl();
            control.incrementServiceMessageFromAdapterCount();
        }

        // in this service's case, this invocation occurs when an adapter has asynchronously
        // received a message from one of its adapters acting as a consumer
        if (sendToAllSubscribers)
View Full Code Here

     *
     * @param service The <code>Service</code> that manages this <code>MessageDestination</code>.
     */   
    protected void setupDestinationControl(Service service)
    {       
        controller = new MessageDestinationControl(this, service.getControl());
        controller.register();
        setControl(controller);  
        setupThrottleManagerControl(controller);
        setupSubscriptionManagerControl(controller);
    }
View Full Code Here

     */
    protected void incrementMessageCount(boolean commandMessage, Message message)
    {
        if (isManaged())
        {
            MessageDestinationControl control = (MessageDestinationControl)getDestination(message.getDestination()).getControl();
            if (commandMessage)
            {
                control.incrementServiceCommandCount();
            }
            else
            {
                control.incrementServiceMessageCount();
            }
        }
    }
View Full Code Here

TOP

Related Classes of flex.management.runtime.messaging.MessageDestinationControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.