本文整理了Java中org.glassfish.grizzly.Connection.getProcessorSelector()
方法的一些代码示例,展示了Connection.getProcessorSelector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getProcessorSelector()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Connection
类名称: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;
}
}
内容来源于网络,如有侵权,请联系作者删除!