tom | a708318 | 2014-09-25 21:38:03 -0700 | [diff] [blame^] | 1 | package org.onlab.nio; |
2 | |||||
3 | /** | ||||
4 | * Representation of a message transferred via {@link MessageStream}. | ||||
5 | */ | ||||
6 | public interface Message { | ||||
7 | |||||
8 | /** | ||||
9 | * Gets the message length in bytes. | ||||
10 | * | ||||
11 | * @return number of bytes | ||||
12 | */ | ||||
13 | int length(); | ||||
14 | |||||
15 | } |