blob: 68cd83cb05927e07d3afed34ed4733f39b7ef69b [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 */
tom81583142014-09-30 01:40:29 -070016 void receive(ClusterMessage message, NodeId fromNodeId);
tom1d416c52014-09-29 20:55:24 -070017
18}