code: public static Class<? extends ServerChannel> getServerChannelClass(boolean isDomainSocket,
        AlluxioConfiguration conf) {
      ChannelType workerChannelType = getWorkerChannel(conf);
      if (isDomainSocket) {
        Preconditions.checkState(workerChannelType == ChannelType.EPOLL,
            "Domain sockets are only supported with EPOLL channel type.");
        return EpollServerDomainSocketChannel.class;
      }
      switch (workerChannelType) {
        case NIO:
          return NioServerSocketChannel.class;
        case EPOLL:
          return EpollServerSocketChannel.class;
        default:
          throw new IllegalArgumentException("Unknown io type: " + workerChannelType);
      }
    }
docs: Returns the correct {@link io.netty.channel.socket.ServerSocketChannel} class for use by the
  worker.
  
  @param isDomainSocket whether this is a domain socket server
  @param conf Alluxio configuration
  @return ServerSocketChannel matching the requirements