RpcContext and RequestContext API fine tuning
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / rpc / RpcContext.java
index 19dc4404bc2b87245177669bf7296ba5b81ab38d..f651a73a1fac69cdb2fb408bcb79ea2880a543a0 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.openflowplugin.api.openflow.rpc;
 
-import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
+import org.opendaylight.openflowplugin.api.openflow.device.RequestContext;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.RpcService;
 import org.opendaylight.yangtools.yang.common.RpcResult;
@@ -24,8 +24,6 @@ public interface RpcContext extends AutoCloseable {
 
     <S extends RpcService> void registerRpcServiceImplementation(Class<S> serviceClass, S serviceInstance);
 
-    void setDeviceContext(DeviceContext deviceContext);
-
     /*
      *  Method adds request to request queue which has limited quota. After number of requests exceeds quota limit
      *  {@link org.opendaylight.openflowplugin.api.openflow.device.exception.RequestQuotaExceededException} is thrown.
@@ -42,4 +40,5 @@ public interface RpcContext extends AutoCloseable {
      */
     void setRequestContextQuota(int maxRequestsPerDevice);
 
+    void forgetRequestContext(RequestContext requestContext);
 }