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 a9f818259176b16a0b93bcba3f6c4babd402e68a..89aa9ecd599cf5aad5fa0db67ae94c7ad7622ed1 100644 (file)
@@ -8,7 +8,9 @@
 
 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;
 
 /**
@@ -18,4 +20,13 @@ public interface StatisticsContext extends RequestContextStack, AutoCloseable {
 
     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();
 }