Refactoring of 'extractIpv4Mask' method
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsContext.java
index e45c0771c58ca913fc986d0b741d27c41917c1cc..29f775f12894a396a742a23148875b2d70816326 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.openflowplugin.api.openflow.statistics;
 
 import com.google.common.util.concurrent.ListenableFuture;
+import io.netty.util.Timeout;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 
 /**
@@ -16,5 +17,10 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
  */
 public interface StatisticsContext extends RequestContextStack, AutoCloseable {
 
-    public ListenableFuture<Boolean> gatherDynamicData();
+    ListenableFuture<Boolean> gatherDynamicData();
+
+    /**
+     * @param pollTimeout handle to nearest scheduled statistics poll
+     */
+    void setPollTimeout(Timeout pollTimeout);
 }