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 givenChannelAcceptor. Usecreate(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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BungeeChannelInitializercreate(ChannelAcceptor acceptor)Creates a new instance of BungeeChannelInitializerabstract ChannelAcceptorgetChannelAcceptor()abstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel>getChannelInitializer()
-
-
-
Method Detail
-
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- theChannelAcceptorthat will accept the channel and initializer the pipeline- Returns:
BungeeChannelInitializercontaining a cachedChannelInitializerthat will call the acceptor
-
-