Package net.engio.mbassy.bus.common

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


    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

Related Classes of net.engio.mbassy.bus.common.DeadMessage

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.