Madan Jampani | 4a9cb6d | 2014-10-17 10:48:50 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.cluster.messaging; |
| 2 | |
Yuta HIGUCHI | 02eacfe | 2014-10-22 19:37:40 -0700 | [diff] [blame] | 3 | import java.util.concurrent.Future; |
Madan Jampani | 4a9cb6d | 2014-10-17 10:48:50 -0700 | [diff] [blame] | 4 | import java.util.concurrent.TimeUnit; |
| 5 | import java.util.concurrent.TimeoutException; |
| 6 | |
| 7 | import org.onlab.onos.cluster.NodeId; |
| 8 | |
Yuta HIGUCHI | 02eacfe | 2014-10-22 19:37:40 -0700 | [diff] [blame] | 9 | public interface ClusterMessageResponse extends Future<byte[]> { |
| 10 | |
Madan Jampani | 4a9cb6d | 2014-10-17 10:48:50 -0700 | [diff] [blame] | 11 | public NodeId sender(); |
Yuta HIGUCHI | 02eacfe | 2014-10-22 19:37:40 -0700 | [diff] [blame] | 12 | |
| 13 | // TODO InterruptedException, ExecutionException removed from original |
| 14 | // Future declaration. Revisit if we ever need those. |
| 15 | @Override |
| 16 | public byte[] get(long timeout, TimeUnit unit) throws TimeoutException; |
| 17 | |
Madan Jampani | 4a9cb6d | 2014-10-17 10:48:50 -0700 | [diff] [blame] | 18 | } |