@author Weiqi Gao
| 14 | * @author Weiqi Gao |
| 15 | */ |
| 16 | public interface MessageState { |
| 17 | /** |
| 18 | * |
| 19 | * @throws MessageNotReadableException if the message is not in a readable state |
| 20 | */ |
| 21 | void checkReadable() throws MessageNotReadableException; |
| 22 | /** |
| 23 | * @throws MessageNotWriteableException if the message is not in a writable state |
| 24 | */ |
| 25 | void checkWritable() throws MessageNotWriteableException; |
| 26 | |
| 27 | /** |
| 28 | * Make the message readable again |
| 29 | */ |
| 30 | void makeReadable(); |
| 31 | |
| 32 | /** |
| 33 | * Make the message writable again |
| 34 | */ |
| 35 | void makeWritable(); |
| 36 | } |
no outgoing calls
no test coverage detected