use of org.neo4j.causalclustering.messaging.Message in project neo4j by neo4j.
the class DirectNetworking method processMessages.
public void processMessages() {
while (messagesToBeProcessed()) {
for (Map.Entry<MemberId, Queue<Message>> entry : messageQueues.entrySet()) {
MemberId id = entry.getKey();
Queue<Message> queue = entry.getValue();
if (!queue.isEmpty()) {
Message message = queue.remove();
handlers.get(id).handle(message);
}
}
}
}