Introduce checked sendMessage() method 90/5390/1
authorRobert Varga <rovarga@cisco.com>
Tue, 18 Feb 2014 10:39:14 +0000 (11:39 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 18 Feb 2014 10:39:14 +0000 (11:39 +0100)
commit0186064d75d66339db5392b0a9f8b2af22c515cd
treee00c68c7c0ecb3bfea74e5443e9db7dcd6271845
parent4ef2791ac13f5bf745bdfde2f6203e17aead2a10
Introduce checked sendMessage() method

This method send a message down the socket and makes sure that
negotiation fails if the message does not reach the peer for any reason.
Subclasses should use this method instead of talking directly to the
underlying channel.

Change-Id: I5b8201caef1c4ba655dad12fb139b054b9e75f06
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/AbstractSessionNegotiator.java