Package net.md_5.bungee.protocol.channel

# Class BungeeChannelInitializer

java.lang.Object
net.md_5.bungee.protocol.channel.BungeeChannelInitializer

public abstract class BungeeChannelInitializer extends Object
This class hold a netty channel initializer that calls the given `ChannelAcceptor`. Use `create(ChannelAcceptor)` to create a new instance.

Please note that this API is unsafe and doesn't provide any guarantees about the stability of the channel pipeline or the API itself. Use at your own risk.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static BungeeChannelInitializer`
  `create(ChannelAcceptor acceptor)`
  Creates a new instance of BungeeChannelInitializer
  `abstract ChannelAcceptor`
  `getChannelAcceptor()`
  `abstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel>`
  `getChannelInitializer()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getChannelAcceptor

    public abstract ChannelAcceptor getChannelAcceptor()

  - ### getChannelInitializer

    public abstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getChannelInitializer()

  - ### create

    public static BungeeChannelInitializer create(ChannelAcceptor acceptor)
    Creates a new instance of BungeeChannelInitializer
    Parameters:
      `acceptor` - the `ChannelAcceptor` that will accept the channel and initializer the pipeline
    Returns:
      `BungeeChannelInitializer` containing a cached `ChannelInitializer` that will call the acceptor