Package com.hazelcast.core

Examples of com.hazelcast.core.Message


    @Override
    public void dispatchEvent(Object event, Object listener) {
        TopicEvent topicEvent = (TopicEvent) event;
        Object msgObject = nodeEngine.toObject(topicEvent.data);
        Message message = new Message(topicEvent.name, msgObject, topicEvent.publishTime, topicEvent.publishingMember);
        incrementReceivedMessages(topicEvent.name);
        MessageListener messageListener = (MessageListener) listener;
        messageListener.onMessage(message);
    }
View Full Code Here


            if (logger.isLoggable(Level.INFO)) {
                logger.info("Dropping message " + msgObject + " from unknown address:" + topicEvent.publisherAddress);
            }
            return;
        }
        Message message = new Message(topicEvent.name, msgObject, topicEvent.publishTime, member);
        incrementReceivedMessages(topicEvent.name);
        MessageListener messageListener = (MessageListener) listener;
        messageListener.onMessage(message);
    }
View Full Code Here

            if (logger.isLoggable(Level.INFO)) {
                logger.info("Dropping message from unknown address:" + topicEvent.publisherAddress);
            }
            return;
        }
        Message message = new DataAwareMessage(topicEvent.name, topicEvent.data, topicEvent.publishTime, member
                , nodeEngine.getSerializationService());
        incrementReceivedMessages(topicEvent.name);
        MessageListener messageListener = (MessageListener) listener;
        messageListener.onMessage(message);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.core.Message

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.