blob: 666ac6d1579ac395cad80c9fd1b5df517e3f43a9 [file] [log] [blame]
tom1d416c52014-09-29 20:55:24 -07001package org.onlab.onos.store.cluster.messaging;
2
tom81583142014-09-30 01:40:29 -07003import org.onlab.onos.cluster.NodeId;
4
tom1d416c52014-09-29 20:55:24 -07005/**
6 * Represents a message consumer.
7 */
8public interface MessageSubscriber {
9
10 /**
11 * Receives the specified cluster message.
12 *
tom81583142014-09-30 01:40:29 -070013 * @param message message to be received
14 * @param fromNodeId node from which the message was received
tom1d416c52014-09-29 20:55:24 -070015 */
Madan Jampani890bc352014-10-01 22:35:29 -070016 void receive(Object messagePayload, NodeId fromNodeId);
tom1d416c52014-09-29 20:55:24 -070017
18}