agletthreadgroup.java

来自「aglet的部分源码」· Java 代码 · 共 61 行

JAVA
61
字号
package com.ibm.aglets.tahiti;/* * @(#)AgletThreadGroup.java *  * IBM Confidential-Restricted *  * OCO Source Materials *  * 03L7246 (c) Copyright IBM Corp. 1996, 1998 *  * The source code for this program is not published or otherwise * divested of its trade secrets, irrespective of what has been * deposited with the U.S. Copyright Office. */import java.net.URL;import com.ibm.aglet.InvalidAgletException;import com.ibm.aglets.LocalAgletRef;/** * An AgletThreadGroup contains are the running threads of a specific aglet. *  * @version     1.10	$Date: 2001/07/28 06:32:52 $ * @author      Danny B. Lange * @author	Mitsuru Oshima */final class AgletThreadGroup extends ThreadGroup {	protected ResourceManagerImpl _rm;	// 	private int maxThreadNumber = 10;	// Constructs an aglet thread group for the specified aglet.	// 	public AgletThreadGroup(ThreadGroup parent, ResourceManagerImpl rm) {		super(parent, "AgletThreadGroup:" + rm.getName());		_rm = rm;		setMaxPriority(5);	}	public int getMaxThreadNumber() {		checkAccess();		return maxThreadNumber;	}	public void invalidate() {		_rm = null;	}	/*	 * 	 */	public void setMaxThreadNumber(int i) {		checkAccess();		maxThreadNumber = i;	}	public String toString() {		return getClass().getName() + "[name=" + getName() + ",maxpri=" 			   + getMaxPriority() + "]";	}}

⌨️ 快捷键说明

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