tcp_nio.java

来自「JGRoups源码」· Java 代码 · 共 52 行

JAVA
52
字号
package org.jgroups.jmx.protocols;/** * @author Scott Marlow * @version $Id: TCP_NIO.java,v 1.1 2005/11/22 13:58:18 smarlownovell Exp $ */public class TCP_NIO  extends TCP implements TCP_NIOMBean {   org.jgroups.protocols.TCP_NIO p;   public TCP_NIO() {   }   public TCP_NIO(org.jgroups.stack.Protocol p) {       super(p);       this.p=(org.jgroups.protocols.TCP_NIO)p;   }   public void attachProtocol(org.jgroups.stack.Protocol p) {       super.attachProtocol(p);       this.p=(org.jgroups.protocols.TCP_NIO)p;   }   public int getReaderThreads() {      return p.getReaderThreads();   }   public int getWriterThreads() {      return p.getWriterThreads();   }   public int getProcessorThreads() {      return p.getProcessorThreads();   }   public int getProcessorMinThreads() {      return p.getProcessorMinThreads();   }   public int getProcessorMaxThreads() {      return p.getProcessorMaxThreads();   }   public int getProcessorQueueSize() {      return p.getProcessorQueueSize();   }   public int getProcessorKeepAliveTime() {      return p.getProcessorKeepAliveTime();   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?