Examples of DeadMessage


Examples of com.codebullets.sagalib.DeadMessage

    private void handleSagaMessage(final Object invokeParam) throws InvocationTargetException, IllegalAccessException {
        Collection<SagaInstanceDescription> sagaDescriptions = env.sagaFactory().create(invokeParam);
        if (!sagaDescriptions.isEmpty()) {
            executeMessage(invokeParam, sagaDescriptions);
        } else {
            DeadMessage deadMessage = new DeadMessage(invokeParam);
            sagaDescriptions = env.sagaFactory().create(deadMessage);
            if (!sagaDescriptions.isEmpty()) {
                executeMessage(deadMessage, sagaDescriptions);
            } else {
                LOG.warn("No saga found to handle message. (message = {})", invokeParam);
View Full Code Here

Examples of net.engio.mbassy.bus.common.DeadMessage

        // if the message has not been marked delivered by the dispatcher
        if (!delivered) {
            if (!isFilteredEvent() && !isDeadEvent()) {
                runtime.getProvider().publish(new FilteredMessage(message));
            } else if (!isDeadEvent()) {
                runtime.getProvider().publish(new DeadMessage(message));
            }

        }
    }
View Full Code Here

Examples of net.engio.mbassy.bus.common.DeadMessage

    protected MessagePublication createMessagePublication(T message) {
        Collection<Subscription> subscriptions = getSubscriptionsByMessageType(message.getClass());
        if ((subscriptions == null || subscriptions.isEmpty()) && !message.getClass().equals(DeadMessage.class)) {
            // Dead Event
            subscriptions = getSubscriptionsByMessageType(DeadMessage.class);
            return getPublicationFactory().createPublication(runtime, subscriptions, new DeadMessage(message));
        } else {
            return getPublicationFactory().createPublication(runtime, subscriptions, message);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.