Package net.md_5.bungee.protocol.channel
Class BungeeChannelInitializer
java.lang.Object
net.md_5.bungee.protocol.channel.BungeeChannelInitializer
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 TypeMethodDescriptionstatic BungeeChannelInitializercreate(ChannelAcceptor acceptor) Creates a new instance of BungeeChannelInitializerabstract ChannelAcceptorabstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
-
Method Details
-
getChannelAcceptor
-
getChannelInitializer
public abstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getChannelInitializer() -
create
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
-