Upgrade to Service Path 1.7
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / service / PathComputationService.java
index 88f372a40951c4411561e5f13376913c94fa966a..95cd187230fcb77d9c9367534647bda0fd7f0c5b 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.transportpce.pce.service;
 
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.CancelResourceReserveInput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.CancelResourceReserveOutput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestInput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestOutput;
+import com.google.common.util.concurrent.ListenableFuture;
+
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestOutput;
 
 /**
  * Path Computation Service.
@@ -23,7 +25,7 @@ public interface PathComputationService {
      * @param input CancelResourceReserveInput data
      * @return output CancelResourceReserveOutput data
      */
-    CancelResourceReserveOutput cancelResourceReserve(CancelResourceReserveInput input);
+    ListenableFuture<CancelResourceReserveOutput> cancelResourceReserve(CancelResourceReserveInput input);
 
     /**
      * Requests a path compuation.
@@ -31,6 +33,6 @@ public interface PathComputationService {
      * @param input PathComputationRequestInput data
      * @return output PathComputationRequestOutput data
      */
-    PathComputationRequestOutput pathComputationRequest(PathComputationRequestInput input);
+    ListenableFuture<PathComputationRequestOutput> pathComputationRequest(PathComputationRequestInput input);
 
 }