BUG-48: message send should return future 77/2177/1
authorRobert Varga <rovarga@cisco.com>
Fri, 25 Oct 2013 20:17:24 +0000 (22:17 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 25 Oct 2013 20:18:03 +0000 (22:18 +0200)
commit3be83fd2ce01c1614f6318afd35da594e9f9f77c
tree7d8b03d6c909ec28ae20e6593ebad0f9c8d40728
parentb174c969a070d51fd0fbe92f8ff8e7a1144bd7ed
BUG-48: message send should return future

The next step will see us integrate sendMessage() into MD-SAL RPC
service. The RPC's fate has to track the message as it leaves the
system -- they return a Future, which resolves one the RPC is complete.

The definition in this case requires that we allow sendMessage() users
to obtain the Future which will fail if the message does not hit the
socket.

Change-Id: If0e086d5a53b17712dfb05730d73cca68f3242e7
Signed-off-by: Robert Varga <rovarga@cisco.com>
pcep/api/src/main/java/org/opendaylight/protocol/pcep/PCEPSession.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImpl.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/ServerSessionMock.java