statistics context implements dedicated services
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / RequestContext.java
index b206e30a8cfa8f15ec2cdcd2412d7abb774a34d0..e9468807208bec86cf6a739301c392b535841c84 100644 (file)
@@ -8,17 +8,41 @@
 package org.opendaylight.openflowplugin.api.openflow.device;
 
 
-import org.opendaylight.yangtools.yang.binding.DataObject;
-
 /**
  * Request context handles all requests on device. Number of requests is limited by request quota. When this quota is
  * exceeded all rpc's will end up with exception.
  * <p/>
- * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
+ * Created by Martin Bobak &lt;mbobak@cisco.com&gt; on 25.2.2015.
  */
-public interface RequestContext<T extends DataObject> extends RequestFutureContext, AutoCloseable {
+public interface RequestContext<T> extends RequestFutureContext<T>, AutoCloseable {
+
+    /**
+     * Returns xid generated for this request.
+     *
+     * @return
+     */
+    Xid getXid();
+
+    /**
+     * Sets xid generated for this request.
+     *
+     * @return
+     */
+    void setXid(Xid xid);
+
+    /**
+     * Returns request timeout value.
+     *
+     * @return
+     */
+    long getWaitTimeout();
 
-    void close();
 
+    /**
+     * Sets request timeout value.
+     *
+     * @return
+     */
+    void setWaitTimeout(long waitTimeout);
 
 }