类 InboundChannelHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<EslMessage>
link.thingscloud.freeswitch.esl.inbound.handler.InboundChannelHandler
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class InboundChannelHandler extends io.netty.channel.SimpleChannelInboundHandler<EslMessage>

InboundChannelHandler class.

版本:
1.0.0
作者:
: zhouhailin
  • 嵌套类概要

    从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • 构造器概要

    构造器
    构造器
    说明
    InboundChannelHandler(ChannelEventListener listener, ExecutorService publicExecutor, ExecutorService privateExecutor, boolean disablePublicExecutor)
    Constructor for InboundChannelHandler.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    channelActive(io.netty.channel.ChannelHandlerContext ctx)
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
    protected void
    channelRead0(io.netty.channel.ChannelHandlerContext ctx, EslMessage msg)
    io.netty.channel.ChannelFuture
    close.
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
    Returns the Job UUID of that the response event will have.
    Synthesise a synchronous command/response by creating a callback object which is placed in queue and blocks waiting for another IO thread to process an incoming EslMessage and attach it to the callback.
    Synthesise a synchronous command/response by creating a callback object which is placed in queue and blocks waiting for another IO thread to process an incoming EslMessage and attach it to the callback.
    void
    userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)

    从类继承的方法 io.netty.channel.SimpleChannelInboundHandler

    acceptInboundMessage, channelRead

    从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

    channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged

    从类继承的方法 io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • 构造器详细资料

  • 方法详细资料

    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelActive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelInactive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • userEventTriggered

      public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
      指定者:
      userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      userEventTriggered 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelHandler
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      exceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelRead0

      protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, EslMessage msg)
      指定者:
      channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<EslMessage>
    • sendSyncSingleLineCommand

      public EslMessage sendSyncSingleLineCommand(String command)
      Synthesise a synchronous command/response by creating a callback object which is placed in queue and blocks waiting for another IO thread to process an incoming EslMessage and attach it to the callback.
      参数:
      command - single string to send
      返回:
      the EslMessage attached to this command's callback
    • sendSyncMultiLineCommand

      public EslMessage sendSyncMultiLineCommand(List<String> commandLines)
      Synthesise a synchronous command/response by creating a callback object which is placed in queue and blocks waiting for another IO thread to process an incoming EslMessage and attach it to the callback.
      参数:
      commandLines - List of command lines to send
      返回:
      the EslMessage attached to this command's callback
    • sendAsyncCommand

      public String sendAsyncCommand(String command)
      Returns the Job UUID of that the response event will have.
      参数:
      command - cmd
      返回:
      Job-UUID as a string
    • close

      public io.netty.channel.ChannelFuture close()

      close.

      返回:
      a ChannelFuture object.