Class ChannelProxy

java.lang.Object
com.comphenix.protocol.injector.netty.ChannelProxy
All Implemented Interfaces:
io.netty.channel.Channel, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>

public abstract class ChannelProxy extends Object implements io.netty.channel.Channel
  • Nested Class Summary

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

    io.netty.channel.Channel.Unsafe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected io.netty.channel.Channel
     
    protected Class<?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChannelProxy​(io.netty.channel.Channel delegate, Class<?> messageClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBufAllocator
     
    <T> io.netty.util.Attribute<T>
    attr​(io.netty.util.AttributeKey<T> paramAttributeKey)
     
    io.netty.channel.ChannelFuture
    bind​(SocketAddress paramSocketAddress)
     
    io.netty.channel.ChannelFuture
    bind​(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.ChannelFuture
     
    io.netty.channel.ChannelFuture
    close​(io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.ChannelFuture
     
    int
    compareTo​(io.netty.channel.Channel o)
     
    io.netty.channel.ChannelConfig
     
    io.netty.channel.ChannelFuture
    connect​(SocketAddress paramSocketAddress)
     
    io.netty.channel.ChannelFuture
    connect​(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.ChannelFuture
    connect​(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2)
     
    io.netty.channel.ChannelFuture
    connect​(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2, io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.ChannelFuture
    Deprecated.
    io.netty.channel.ChannelFuture
    deregister​(io.netty.channel.ChannelPromise paramChannelPromise)
    Deprecated.
    io.netty.channel.ChannelFuture
     
    io.netty.channel.ChannelFuture
    disconnect​(io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.EventLoop
     
    io.netty.channel.Channel
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
     
    io.netty.channel.ChannelMetadata
     
    io.netty.channel.ChannelFuture
    newFailedFuture​(Throwable paramThrowable)
     
    io.netty.channel.ChannelProgressivePromise
     
    io.netty.channel.ChannelPromise
     
    io.netty.channel.ChannelFuture
     
    protected abstract Runnable
    onMessageScheduled​(Runnable runnable, FieldAccessor packetAccessor)
    Invoked when a packet is scheduled for transmission in the event loop.
    protected abstract <T> Callable<T>
    onMessageScheduled​(Callable<T> callable, FieldAccessor packetAccessor)
    Invoked when a packet is scheduled for transmission in the event loop.
    io.netty.channel.Channel
     
    io.netty.channel.ChannelPipeline
     
    io.netty.channel.Channel
     
     
    io.netty.channel.Channel.Unsafe
     
    io.netty.channel.ChannelPromise
     
    io.netty.channel.ChannelFuture
    write​(Object paramObject)
     
    io.netty.channel.ChannelFuture
    write​(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)
     
    io.netty.channel.ChannelFuture
    writeAndFlush​(Object paramObject)
     
    io.netty.channel.ChannelFuture
    writeAndFlush​(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • delegate

      protected io.netty.channel.Channel delegate
    • messageClass

      protected Class<?> messageClass
  • Constructor Details

    • ChannelProxy

      public ChannelProxy(io.netty.channel.Channel delegate, Class<?> messageClass)
  • Method Details

    • onMessageScheduled

      protected abstract <T> Callable<T> onMessageScheduled(Callable<T> callable, FieldAccessor packetAccessor)
      Invoked when a packet is scheduled for transmission in the event loop.
      Type Parameters:
      T - Type
      Parameters:
      callable - - callable to schedule for execution.
      packetAccessor - - accessor for modifying the packet in the callable.
      Returns:
      The callable that will be scheduled, or NULL to cancel.
    • onMessageScheduled

      protected abstract Runnable onMessageScheduled(Runnable runnable, FieldAccessor packetAccessor)
      Invoked when a packet is scheduled for transmission in the event loop.
      Parameters:
      runnable - - the runnable that contains a packet to be scheduled.
      packetAccessor - - accessor for modifying the packet in the runnable.
      Returns:
      The runnable that will be scheduled, or NULL to cancel.
    • attr

      public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> paramAttributeKey)
      Specified by:
      attr in interface io.netty.util.AttributeMap
    • bind

      public io.netty.channel.ChannelFuture bind(SocketAddress paramSocketAddress)
      Specified by:
      bind in interface io.netty.channel.Channel
    • pipeline

      public io.netty.channel.ChannelPipeline pipeline()
      Specified by:
      pipeline in interface io.netty.channel.Channel
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress)
      Specified by:
      connect in interface io.netty.channel.Channel
    • alloc

      public io.netty.buffer.ByteBufAllocator alloc()
      Specified by:
      alloc in interface io.netty.channel.Channel
    • newPromise

      public io.netty.channel.ChannelPromise newPromise()
      Specified by:
      newPromise in interface io.netty.channel.Channel
    • eventLoop

      public io.netty.channel.EventLoop eventLoop()
      Specified by:
      eventLoop in interface io.netty.channel.Channel
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2)
      Specified by:
      connect in interface io.netty.channel.Channel
    • newProgressivePromise

      public io.netty.channel.ChannelProgressivePromise newProgressivePromise()
      Specified by:
      newProgressivePromise in interface io.netty.channel.Channel
    • parent

      public io.netty.channel.Channel parent()
      Specified by:
      parent in interface io.netty.channel.Channel
    • config

      public io.netty.channel.ChannelConfig config()
      Specified by:
      config in interface io.netty.channel.Channel
    • newSucceededFuture

      public io.netty.channel.ChannelFuture newSucceededFuture()
      Specified by:
      newSucceededFuture in interface io.netty.channel.Channel
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface io.netty.channel.Channel
    • disconnect

      public io.netty.channel.ChannelFuture disconnect()
      Specified by:
      disconnect in interface io.netty.channel.Channel
    • isRegistered

      public boolean isRegistered()
      Specified by:
      isRegistered in interface io.netty.channel.Channel
    • newFailedFuture

      public io.netty.channel.ChannelFuture newFailedFuture(Throwable paramThrowable)
      Specified by:
      newFailedFuture in interface io.netty.channel.Channel
    • close

      public io.netty.channel.ChannelFuture close()
      Specified by:
      close in interface io.netty.channel.Channel
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface io.netty.channel.Channel
    • deregister

      @Deprecated public io.netty.channel.ChannelFuture deregister()
      Deprecated.
      Specified by:
      deregister in interface io.netty.channel.Channel
    • voidPromise

      public io.netty.channel.ChannelPromise voidPromise()
      Specified by:
      voidPromise in interface io.netty.channel.Channel
    • metadata

      public io.netty.channel.ChannelMetadata metadata()
      Specified by:
      metadata in interface io.netty.channel.Channel
    • bind

      public io.netty.channel.ChannelFuture bind(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      bind in interface io.netty.channel.Channel
    • localAddress

      public SocketAddress localAddress()
      Specified by:
      localAddress in interface io.netty.channel.Channel
    • remoteAddress

      public SocketAddress remoteAddress()
      Specified by:
      remoteAddress in interface io.netty.channel.Channel
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      connect in interface io.netty.channel.Channel
    • closeFuture

      public io.netty.channel.ChannelFuture closeFuture()
      Specified by:
      closeFuture in interface io.netty.channel.Channel
    • isWritable

      public boolean isWritable()
      Specified by:
      isWritable in interface io.netty.channel.Channel
    • flush

      public io.netty.channel.Channel flush()
      Specified by:
      flush in interface io.netty.channel.Channel
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2, io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      connect in interface io.netty.channel.Channel
    • read

      public io.netty.channel.Channel read()
      Specified by:
      read in interface io.netty.channel.Channel
    • unsafe

      public io.netty.channel.Channel.Unsafe unsafe()
      Specified by:
      unsafe in interface io.netty.channel.Channel
    • disconnect

      public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      disconnect in interface io.netty.channel.Channel
    • close

      public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      close in interface io.netty.channel.Channel
    • deregister

      @Deprecated public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise paramChannelPromise)
      Deprecated.
      Specified by:
      deregister in interface io.netty.channel.Channel
    • write

      public io.netty.channel.ChannelFuture write(Object paramObject)
      Specified by:
      write in interface io.netty.channel.Channel
    • write

      public io.netty.channel.ChannelFuture write(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      write in interface io.netty.channel.Channel
    • writeAndFlush

      public io.netty.channel.ChannelFuture writeAndFlush(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)
      Specified by:
      writeAndFlush in interface io.netty.channel.Channel
    • writeAndFlush

      public io.netty.channel.ChannelFuture writeAndFlush(Object paramObject)
      Specified by:
      writeAndFlush in interface io.netty.channel.Channel
    • compareTo

      public int compareTo(io.netty.channel.Channel o)
      Specified by:
      compareTo in interface Comparable<io.netty.channel.Channel>