workqueue.java
来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 49 行
JAVA
49 行
/* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.spi.orbutil.threadpool;public interface WorkQueue { /** * This method is used to add work to the WorkQueue */ public void addWork(Work aWorkItem); /** * This method will return the name of the WorkQueue. */ public String getName(); /** * Returns the total number of Work items added to the Queue. */ public long totalWorkItemsAdded(); /** * Returns the total number of Work items in the Queue to be processed. */ public int workItemsInQueue(); /** * Returns the average time a work item is waiting in the queue before * getting processed. */ public long averageTimeInQueue(); /** * Set the ThreadPool instance servicing this WorkQueue */ public void setThreadPool(ThreadPool aThreadPool); /** * Get the ThreadPool instance servicing this WorkQueue */ public ThreadPool getThreadPool();}// End of file.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?