Class BukkitPipelineInjector.BukkitChannelDuplexHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
me.neznamy.tab.platforms.bukkit.BukkitPipelineInjector.BukkitChannelDuplexHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
Enclosing class:
BukkitPipelineInjector

public class BukkitPipelineInjector.BukkitChannelDuplexHandler extends io.netty.channel.ChannelDuplexHandler
Custom channel duplex handler override
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitChannelDuplexHandler(me.neznamy.tab.api.TabPlayer player)
    Constructs new instance with given player
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelRead(@NotNull io.netty.channel.ChannelHandlerContext context, @NotNull Object packet)
     
    void
    write(io.netty.channel.ChannelHandlerContext context, Object packet, io.netty.channel.ChannelPromise channelPromise)
     

    Methods inherited from class io.netty.channel.ChannelDuplexHandler

    bind, close, connect, deregister, disconnect, flush, read

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • Constructor Details

    • BukkitChannelDuplexHandler

      public BukkitChannelDuplexHandler(me.neznamy.tab.api.TabPlayer player)
      Constructs new instance with given player
      Parameters:
      player - player to inject
  • Method Details

    • channelRead

      public void channelRead(@NotNull @NotNull io.netty.channel.ChannelHandlerContext context, @NotNull @NotNull Object packet)
      Specified by:
      channelRead in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
    • write

      public void write(io.netty.channel.ChannelHandlerContext context, Object packet, io.netty.channel.ChannelPromise channelPromise)
      Specified by:
      write in interface io.netty.channel.ChannelOutboundHandler
      Overrides:
      write in class io.netty.channel.ChannelDuplexHandler