/*
 * Copyright 2012 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.util.concurrent;

import java.util.concurrent.Executor;

/**
 * Default {@link SingleThreadEventExecutor} implementation which just execute all submitted task in a
 * serial fashion
 *
 */
final class DefaultEventExecutor extends SingleThreadEventExecutor {

    DefaultEventExecutor(DefaultEventExecutorGroup parent, Executor executor) {
        super(parent, executor, true);
    }

    @Override
    protected void run() {
        for (;;) {
            Runnable task = takeTask();
            if (task != null) {
                task.run();
                updateLastExecutionTime();
            }

            if (confirmShutdown()) {
                break;
            }
        }
    }
}

@@ -700,16 +700,59 @@
 xecutor;
+%0Aimport java.util.concurrent.ThreadFactory;
 %0A%0A/**%0A *
@@ -874,15 +874,19 @@
 ion%0A
- *%0A
  */%0A
+public 
 fina
@@ -955,16 +955,23 @@
  %7B%0A%0A    
+public 
 DefaultE
@@ -983,23 +983,580 @@
 xecutor(
-Default
+) %7B%0A        this((EventExecutorGroup) null);%0A    %7D%0A%0A    public DefaultEventExecutor(ThreadFactory threadFactory) %7B%0A        this(null, threadFactory);%0A    %7D%0A%0A    public DefaultEventExecutor(Executor executor) %7B%0A        this(null, executor);%0A    %7D%0A%0A    public DefaultEventExecutor(EventExecutorGroup parent) %7B%0A        this(parent, new DefaultThreadFactory(DefaultEventExecutor.class));%0A    %7D%0A%0A    public DefaultEventExecutor(EventExecutorGroup parent, ThreadFactory threadFactory) %7B%0A        super(parent, threadFactory, true);%0A    %7D%0A%0A    public DefaultEventExecutor(
 EventExe

Make DefaultEventExecutor usable by users.