blob: 55f868c73c20fdd17a589b64cd560fd84111c5ec [file] [log] [blame]
tom1d416c52014-09-29 20:55:24 -07001package org.onlab.onos.store.cluster.impl;
2
3import org.onlab.onos.cluster.NodeId;
4import org.onlab.onos.store.cluster.messaging.ClusterMessage;
5
6/**
7 * Created by tom on 9/29/14.
8 */
9public interface MessageSender {
10
11 /**
12 * Sends the specified message to the given cluster node.
13 *
14 * @param nodeId node identifier
15 * @param message mesage to send
16 * @return true if the message was sent sucessfully; false if there is
17 * no stream or if there was an error
18 */
19 boolean send(NodeId nodeId, ClusterMessage message);
20
21}