Merge "BUG-4177: Li - flowMod result ignores errors from device"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsContext.java
index 62a51acad39dc6f2efa6e4e3b0987a182d8b2605..89aa9ecd599cf5aad5fa0db67ae94c7ad7622ed1 100644 (file)
@@ -8,14 +8,25 @@
 
 package org.opendaylight.openflowplugin.api.openflow.statistics;
 
+import com.google.common.base.Optional;
 import com.google.common.util.concurrent.ListenableFuture;
+import io.netty.util.Timeout;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.MultiMsgCollector;
 
 /**
  * Created by Martin Bobak <mbobak@cisco.com> on 27.2.2015.
  */
 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);
+
+    /**
+     * @return handle to currently scheduled statistics polling
+     */
+    Optional<Timeout> getPollTimeout();
 }