src/share/classes/com/sun/corba/se/spi/orbutil/threadpool/ThreadPool.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,35 ****
* questions.
*/
package com.sun.corba.se.spi.orbutil.threadpool;
! public interface ThreadPool
{
/**
* This method will return any instance of the WorkQueue. If the ThreadPool
* instance only services one WorkQueue then that WorkQueue instance will
* be returned. If there are more than one WorkQueues serviced by this
* ThreadPool, then this method would return a WorkQueue based on the
--- 23,41 ----
* questions.
*/
package com.sun.corba.se.spi.orbutil.threadpool;
+ import java.io.Closeable;
! /** This interface defines a thread pool execution service. The ORB uses this
! * interface, which preceeds the JDK 5 ExecutorService. Note that the close
! * method must be called in order to reclaim thread resources.
! */
! public interface ThreadPool extends Closeable
{
+
/**
* This method will return any instance of the WorkQueue. If the ThreadPool
* instance only services one WorkQueue then that WorkQueue instance will
* be returned. If there are more than one WorkQueues serviced by this
* ThreadPool, then this method would return a WorkQueue based on the