Package org.grails.plugin.platform.events

Examples of org.grails.plugin.platform.events.EventReply


    public EventReply event(final EventMessage event) {
        try {
            Object data = event.getData() != null ? event.getData() : new TrackableNullResult();
            Message<?> res = eventsPublisherGateway.send(data, event, event.getEvent());
            return new EventReply(res.getPayload(), res.getHeaders().getSequenceSize());
        } catch (MessagingException rre) {
            if (log.isDebugEnabled()) {
                log.debug("Missing reply on event " + event.getEvent() + " for scope " +
                        event.getNamespace() + " for one or more listeners - " + rre.getMessage());
            }
        }
        return new EventReply(null, 0);
    }
View Full Code Here

TOP

Related Classes of org.grails.plugin.platform.events.EventReply

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.