BUG-58: refactor to take advantage of netty
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPSession.java
index 32d558843804a10236b79ba76c8e185983af6529..0dbeed907ab6081b748068ae1acdaf83ae240433 100644 (file)
@@ -7,8 +7,7 @@
  */
 package org.opendaylight.protocol.pcep;
 
-import java.io.Closeable;
-
+import org.opendaylight.protocol.framework.ProtocolSession;
 import org.opendaylight.protocol.pcep.object.PCEPCloseObject;
 
 /**
@@ -17,7 +16,7 @@ import org.opendaylight.protocol.pcep.object.PCEPCloseObject;
  * manually. If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown
  * requests.
  */
-public interface PCEPSession extends Closeable {
+public interface PCEPSession extends ProtocolSession<PCEPMessage> {
 
        /**
         * Sends message from user to PCE/PCC. If the user sends an Open Message, the session returns an error (open message