Improve cleanup after device disconnected event
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsContext.java
index 4a954c00fb26d4825ef6bd657e72c9ce73ad3374..9c50b65da729cf8a1a790e1af68a71ab4123484a 100644 (file)
@@ -15,13 +15,12 @@ import org.opendaylight.openflowplugin.api.openflow.OFPContext;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceState;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
-import org.opendaylight.openflowplugin.api.openflow.lifecycle.LifecycleService;
 import org.opendaylight.openflowplugin.api.openflow.rpc.listener.ItemLifecycleListener;
 
 /**
  * Context for statistics
  */
-public interface StatisticsContext extends RequestContextStack, AutoCloseable, OFPContext {
+public interface StatisticsContext extends RequestContextStack, OFPContext {
 
     /**
      * Gather data from device
@@ -60,9 +59,6 @@ public interface StatisticsContext extends RequestContextStack, AutoCloseable, O
      */
     ItemLifecycleListener getItemLifeCycleListener();
 
-    @Override
-    void close();
-
     /**
      * On / Off scheduling
      * @param schedulingEnabled true if scheduling should be enabled