Merge "Fixed GlobalEventExecutorCloseable - override "unsupported opearaion" methods."
authorEd Warnicke <eaw@cisco.com>
Wed, 27 Nov 2013 22:12:43 +0000 (22:12 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 27 Nov 2013 22:12:43 +0000 (22:12 +0000)
opendaylight/config/netty-event-executor-config/src/main/java/org/opendaylight/controller/config/yang/netty/eventexecutor/GlobalEventExecutorModule.java

index aed3a0cc1596b9fc15b2e93fb7516a40971d3ef8..02cbd247a71db70f8dee044771eb904fa67b3b0b 100644 (file)
@@ -14,7 +14,9 @@ import io.netty.util.concurrent.EventExecutor;
 import io.netty.util.concurrent.EventExecutorGroup;
 import io.netty.util.concurrent.Future;
 import io.netty.util.concurrent.GlobalEventExecutor;
+import io.netty.util.concurrent.ScheduledFuture;
 
+import java.util.concurrent.Callable;
 import java.util.concurrent.TimeUnit;
 
 /**
@@ -108,5 +110,24 @@ public final class GlobalEventExecutorModule extends
             this.executor.shutdown();
         }
 
+        @Override
+        public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) {
+            return this.executor.scheduleWithFixedDelay(command, initialDelay, delay, unit);
+        }
+
+        @Override
+        public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
+            return this.executor.schedule(command, delay, unit);
+        }
+
+        @Override
+        public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
+            return this.executor.schedule(callable, delay, unit);
+        }
+
+        @Override
+        public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
+            return this.executor.scheduleAtFixedRate(command, initialDelay, period, unit);
+        }
     }
 }