tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.cluster.impl; |
| 2 | |
| 3 | import org.onlab.onos.cluster.NodeId; |
| 4 | import org.onlab.onos.store.cluster.messaging.ClusterMessage; |
| 5 | |
| 6 | /** |
| 7 | * Created by tom on 9/29/14. |
| 8 | */ |
| 9 | public 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 | } |