org.glassfish.grizzly.Connection.getProcessorSelector()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.glassfish.grizzly.Connection.getProcessorSelector()方法的一些代码示例,展示了Connection.getProcessorSelector()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getProcessorSelector()方法的具体详情如下:
包路径:org.glassfish.grizzly.Connection
类名称:Connection
方法名:getProcessorSelector

Connection.getProcessorSelector介绍

[英]Gets the default ProcessorSelector, which will be used to get Processor to process Connection I/O events, in case if this Connection's Processor is null.
[中]获取默认ProcessorSelector,如果此连接的处理器为null,则将使用该选项获取处理器到处理器的连接I/O事件。

代码示例

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: javaee/grizzly

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

/**
   * {@inheritDoc}
   */
  @Override
  public Processor select(IOEvent ioEvent, Connection connection) {

    Processor eventProcessor = connection.getProcessor();

    if (eventProcessor != null && eventProcessor.isInterested(ioEvent)) {
      return eventProcessor;
    }

    ProcessorSelector processorSelector =
        connection.getProcessorSelector();

    if (processorSelector != null) {
      return processorSelector.select(ioEvent, connection);
    }

    return null;
  }
}

相关文章