com.hazelcast.core
Interface MessageListener<E>

Type Parameters:
E - message
All Superinterfaces:
EventListener

public interface MessageListener<E>
extends EventListener

Message listener for ITopic.


Method Summary
 void onMessage(Message<E> message)
          Invoked when a message is received for the added topic.
 

Method Detail

onMessage

void onMessage(Message<E> message)
Invoked when a message is received for the added topic. Note that topic guarantees message ordering. Therefore there is only one thread invoking onMessage. The user shouldn't keep the thread busy and preferably dispatch it via an Executor. This will increase the performance of the topic.

Parameters:
message - received message


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.