📄 agletthreadgroup.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -