归档
类继承关系
事件轮循
NioEventLoopGroup
public class NioEventLoopGroup extends MultithreadEventLoopGroup {
}
public abstract class MultithreadEventLoopGroup extends MultithreadEventExecutorGroup implements EventLoopGroup {
}
public abstract class MultithreadEventExecutorGroup extends AbstractEventExecutorGroup {
}
public abstract class AbstractEventExecutorGroup implements EventExecutorGroup {
}
public interface EventExecutorGroup extends ScheduledExecutorService, Iterable<EventExecutor> {
}
public interface ScheduledExecutorService extends ExecutorService {
}
public interface ExecutorService extends Executor {
}
public interface Executor {
}
NioEventLoop
public final class NioEventLoop extends SingleThreadEventLoop {
}
public abstract class SingleThreadEventLoop extends SingleThreadEventExecutor implements EventLoop {
}
public abstract class SingleThreadEventExecutor extends AbstractScheduledEventExecutor implements OrderedEventExecutor {
}
public abstract class AbstractScheduledEventExecutor extends AbstractEventExecutor {
}
public abstract class AbstractEventExecutor extends AbstractExecutorService implements EventExecutor {
}
public interface EventLoop extends OrderedEventExecutor, EventLoopGroup {
}
public interface OrderedEventExecutor extends EventExecutor {
}
public interface EventLoopGroup extends EventExecutorGroup {
}
public interface EventExecutor extends EventExecutorGroup {
}
信道
NioServerSocketChannel
- 相当于 JDK
java.nio.channels.ServerSocketChannel
public class NioServerSocketChannel extends AbstractNioMessageChannel
implements io.netty.channel.socket.ServerSocketChannel {
}
public abstract class AbstractNioMessageChannel extends AbstractNioChannel {
}
public abstract class AbstractNioChannel extends AbstractChannel {
}
public abstract class AbstractChannel extends DefaultAttributeMap implements Channel {
}
public class DefaultAttributeMap implements AttributeMap {
}
public interface Channel extends AttributeMap, ChannelOutboundInvoker, Comparable<Channel> {
}
NioSocketChannel
- 相当于 JDK
java.nio.channels.SocketChannel
public class NioSocketChannel extends AbstractNioByteChannel implements io.netty.channel.socket.SocketChannel {
}
public abstract class AbstractNioByteChannel extends AbstractNioChannel {
}
public interface SocketChannel extends DuplexChannel {
}
public interface DuplexChannel extends Channel {
}
Unsafa
NioMessageUnsafe
private final class NioMessageUnsafe extends AbstractNioUnsafe {
}
protected abstract class AbstractNioUnsafe extends AbstractUnsafe implements NioUnsafe {
}
protected abstract class AbstractUnsafe implements Unsafe {
}
public interface NioUnsafe extends Unsafe {
}
interface Unsafe {
}
NioSocketChannelUnsafe
private final class NioSocketChannelUnsafe extends NioByteUnsafe {
}
protected class NioByteUnsafe extends AbstractNioUnsafe {
}
Promise
DefaultChannelPromise
public class DefaultChannelPromise extends DefaultPromise<Void> implements ChannelPromise, FlushCheckpoint {
}
public class DefaultPromise<V> extends AbstractFuture<V> implements Promise<V> {
}
public abstract class AbstractFuture<V> implements Future<V> {
}
public interface Future<V> extends java.util.concurrent.Future<V> {
}
ByteBuf
PooledUnsafeDirectByteBuf
final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
}
abstract class PooledByteBuf<T> extends AbstractReferenceCountedByteBuf {
}
public abstract class AbstractReferenceCountedByteBuf extends AbstractByteBuf {
}
public abstract class AbstractByteBuf extends ByteBuf {
}
public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf>, ByteBufConvertible {
}
public interface ReferenceCounted {
}
public interface ByteBufConvertible {
}
PooledByteBufAllocator
public class PooledByteBufAllocator extends AbstractByteBufAllocator implements ByteBufAllocatorMetricProvider {
}
public abstract class AbstractByteBufAllocator implements ByteBufAllocator {
}
public interface ByteBufAllocatorMetricProvider {
}
public interface ByteBufAllocator {
}