X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2Finternal%2FMessageReadWriteService.java;h=dfbecfeb0682ad41e7e7140767427d13b9170498;hb=c2dfbc0108cac537083b1f85e5970f95810bb4c2;hp=d2dab0fc94483b4827890d087c996e0c9ebe3a09;hpb=cf900ecae0a4afada4c675bfadaf78f27eb18857;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/MessageReadWriteService.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/MessageReadWriteService.java index d2dab0fc94..dfbecfeb06 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/MessageReadWriteService.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/MessageReadWriteService.java @@ -52,13 +52,13 @@ public class MessageReadWriteService implements IMessageReadWrite { /** * Sends the OF message out over the socket channel. - * + * * @param msg * OF message to be sent * @throws Exception */ @Override - public void asyncSend(OFMessage msg) throws IOException { + public void asyncSend(OFMessage msg) throws Exception { synchronized (outBuffer) { int msgLen = msg.getLengthU(); if (outBuffer.remaining() < msgLen) { @@ -90,11 +90,11 @@ public class MessageReadWriteService implements IMessageReadWrite { /** * Resumes sending the remaining messages in the outgoing buffer - * + * * @throws Exception */ @Override - public void resumeSend() throws IOException { + public void resumeSend() throws Exception { synchronized (outBuffer) { if (!socket.isOpen()) { return; @@ -116,12 +116,12 @@ public class MessageReadWriteService implements IMessageReadWrite { /** * Reads the incoming network data from the socket and retrieves the OF * messages. - * + * * @return list of OF messages * @throws Exception */ @Override - public List readMessages() throws IOException { + public List readMessages() throws Exception { if (!socket.isOpen()) { return null; }