Class MockIOSession

java.lang.Object
tools.MockIOSession
All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>

public class MockIOSession extends Object implements io.netty.channel.Channel
Represents a mock version of an IOSession to use a MapleClient instance without an active connection (faekchar, etc). Most methods return void, or when they return something, null. Therefore, this class is mostly undocumented, due to the fact that each and every function does squat.
Since:
Revision 518
  • Constructor Details

    • MockIOSession

      public MockIOSession()
  • Method Details

    • id

      public io.netty.channel.ChannelId id()
      Specified by:
      id in interface io.netty.channel.Channel
    • eventLoop

      public io.netty.channel.EventLoop eventLoop()
      Specified by:
      eventLoop 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
    • isOpen

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

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

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

      public io.netty.channel.ChannelMetadata metadata()
      Specified by:
      metadata 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
    • 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
    • bytesBeforeUnwritable

      public long bytesBeforeUnwritable()
      Specified by:
      bytesBeforeUnwritable in interface io.netty.channel.Channel
    • bytesBeforeWritable

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

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

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

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

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

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

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

      public io.netty.channel.ChannelFuture bind(SocketAddress sa)
      Specified by:
      bind in interface io.netty.channel.ChannelOutboundInvoker
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress sa)
      Specified by:
      connect in interface io.netty.channel.ChannelOutboundInvoker
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress sa, SocketAddress sa1)
      Specified by:
      connect in interface io.netty.channel.ChannelOutboundInvoker
    • disconnect

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

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

      public io.netty.channel.ChannelFuture deregister()
      Specified by:
      deregister in interface io.netty.channel.ChannelOutboundInvoker
    • bind

      public io.netty.channel.ChannelFuture bind(SocketAddress sa, io.netty.channel.ChannelPromise cp)
      Specified by:
      bind in interface io.netty.channel.ChannelOutboundInvoker
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress sa, io.netty.channel.ChannelPromise cp)
      Specified by:
      connect in interface io.netty.channel.ChannelOutboundInvoker
    • connect

      public io.netty.channel.ChannelFuture connect(SocketAddress sa, SocketAddress sa1, io.netty.channel.ChannelPromise cp)
      Specified by:
      connect in interface io.netty.channel.ChannelOutboundInvoker
    • disconnect

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

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

      public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise cp)
      Specified by:
      deregister in interface io.netty.channel.ChannelOutboundInvoker
    • write

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

      public io.netty.channel.ChannelFuture write(Object o, io.netty.channel.ChannelPromise cp)
      Specified by:
      write in interface io.netty.channel.ChannelOutboundInvoker
    • writeAndFlush

      public io.netty.channel.ChannelFuture writeAndFlush(Object o, io.netty.channel.ChannelPromise cp)
      Specified by:
      writeAndFlush in interface io.netty.channel.ChannelOutboundInvoker
    • writeAndFlush

      public io.netty.channel.ChannelFuture writeAndFlush(Object o)
      Specified by:
      writeAndFlush in interface io.netty.channel.ChannelOutboundInvoker
    • newPromise

      public io.netty.channel.ChannelPromise newPromise()
      Specified by:
      newPromise in interface io.netty.channel.ChannelOutboundInvoker
    • newProgressivePromise

      public io.netty.channel.ChannelProgressivePromise newProgressivePromise()
      Specified by:
      newProgressivePromise in interface io.netty.channel.ChannelOutboundInvoker
    • newSucceededFuture

      public io.netty.channel.ChannelFuture newSucceededFuture()
      Specified by:
      newSucceededFuture in interface io.netty.channel.ChannelOutboundInvoker
    • newFailedFuture

      public io.netty.channel.ChannelFuture newFailedFuture(Throwable thrwbl)
      Specified by:
      newFailedFuture in interface io.netty.channel.ChannelOutboundInvoker
    • voidPromise

      public io.netty.channel.ChannelPromise voidPromise()
      Specified by:
      voidPromise in interface io.netty.channel.ChannelOutboundInvoker
    • compareTo

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

      public <T> boolean hasAttr(io.netty.util.AttributeKey<T> ak)
      Specified by:
      hasAttr in interface io.netty.util.AttributeMap