2012-06-04 13:31:44 -07:00
|
|
|
/*
|
2014-04-24 21:12:51 +09:00
|
|
|
* Copyright 2014 The Netty Project
|
2012-06-04 13:31:44 -07:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2013-11-06 21:14:07 +09:00
|
|
|
package io.netty.channel;
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2013-11-06 21:14:07 +09:00
|
|
|
import io.netty.util.concurrent.AbstractEventExecutor;
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2013-11-06 21:14:07 +09:00
|
|
|
/**
|
|
|
|
* Skeletal implementation of {@link EventLoop}.
|
|
|
|
*/
|
|
|
|
public abstract class AbstractEventLoop extends AbstractEventExecutor implements EventLoop {
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2014-04-24 21:12:51 +09:00
|
|
|
protected AbstractEventLoop() { }
|
|
|
|
|
2013-11-06 21:14:07 +09:00
|
|
|
protected AbstractEventLoop(EventLoopGroup parent) {
|
|
|
|
super(parent);
|
2012-06-06 23:02:47 +09:00
|
|
|
}
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2012-08-10 20:17:18 +09:00
|
|
|
@Override
|
2013-11-06 21:14:07 +09:00
|
|
|
public EventLoopGroup parent() {
|
|
|
|
return (EventLoopGroup) super.parent();
|
|
|
|
}
|
2012-05-30 04:33:43 -07:00
|
|
|
|
2013-11-06 21:14:07 +09:00
|
|
|
@Override
|
|
|
|
public EventLoop next() {
|
|
|
|
return (EventLoop) super.next();
|
2012-06-01 17:51:19 -07:00
|
|
|
}
|
2012-05-30 04:33:43 -07:00
|
|
|
}
|