Package org.rhq.core.communications.command.annotation

Examples of org.rhq.core.communications.command.annotation.Asynchronous


         */
        private boolean determineAsynchronous(Method method) {
            boolean ret_async_mode_enabled = m_proxyHandlerAsyncModeEnabled;

            if (!m_proxyHandlerIgnoreAnnotations) {
                Asynchronous annotation = method.getAnnotation(Asynchronous.class);

                if (annotation == null) {
                    annotation = method.getDeclaringClass().getAnnotation(Asynchronous.class);
                }

                if (annotation != null) {
                    ret_async_mode_enabled = annotation.value();
                }
            }

            return ret_async_mode_enabled;
        }
View Full Code Here


        private boolean determineGuaranteedDelivery(Method method) {
            boolean ret_delivery_guaranteed = (GuaranteedDelivery.YES == m_proxyHandlerDeliveryGuaranteed) ? true
                : false;

            if (!m_proxyHandlerIgnoreAnnotations) {
                Asynchronous annotation = method.getAnnotation(Asynchronous.class);

                if (annotation == null) {
                    annotation = method.getDeclaringClass().getAnnotation(Asynchronous.class);
                }

                if (annotation != null) {
                    ret_delivery_guaranteed = annotation.guaranteedDelivery();

                    if (ret_delivery_guaranteed && (GuaranteedDelivery.DISABLED == m_proxyHandlerDeliveryGuaranteed)) {
                        ret_delivery_guaranteed = false;
                        LogFactory.getLog(ClientRemotePojoFactory.class).error(
                            "Illegal use of Guaranteed Delivery, Remove 'guaranteedDelivery=true' from method: "
View Full Code Here

TOP

Related Classes of org.rhq.core.communications.command.annotation.Asynchronous

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.