Class EventLoopGroupHolder

java.lang.Object
net.minecraft.server.network.EventLoopGroupHolder

public abstract class EventLoopGroupHolder extends Object
  • Field Details

    • NIO

      private static final EventLoopGroupHolder NIO
    • EPOLL

      private static final EventLoopGroupHolder EPOLL
    • KQUEUE

      private static final EventLoopGroupHolder KQUEUE
    • LOCAL

      private static final EventLoopGroupHolder LOCAL
    • type

      private final String type
    • channelCls

      private final Class<? extends io.netty.channel.Channel> channelCls
    • serverChannelCls

      private final Class<? extends io.netty.channel.ServerChannel> serverChannelCls
    • group

      private volatile @Nullable io.netty.channel.EventLoopGroup group
    • serverGroup

      private volatile @Nullable io.netty.channel.EventLoopGroup serverGroup
  • Constructor Details

    • EventLoopGroupHolder

      EventLoopGroupHolder(String pType, Class<? extends io.netty.channel.Channel> pChannelCls, Class<? extends io.netty.channel.ServerChannel> pServerChannelCls)
  • Method Details

    • remote

      public static EventLoopGroupHolder remote(boolean pRemote)
    • local

      public static EventLoopGroupHolder local()
    • createThreadFactory

      private ThreadFactory createThreadFactory()
    • ioHandlerFactory

      protected abstract io.netty.channel.IoHandlerFactory ioHandlerFactory()
    • createEventLoopGroup

      private io.netty.channel.EventLoopGroup createEventLoopGroup()
    • serverEventLoopGroup

      public io.netty.channel.EventLoopGroup serverEventLoopGroup()
    • eventLoopGroup

      public io.netty.channel.EventLoopGroup eventLoopGroup()
    • channelCls

      public Class<? extends io.netty.channel.Channel> channelCls()
    • serverChannelCls

      public Class<? extends io.netty.channel.ServerChannel> serverChannelCls()