equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.corba.se.spi.orbutil.threadpool; |
26 package com.sun.corba.se.spi.orbutil.threadpool; |
27 |
27 |
|
28 import java.io.Closeable; |
28 |
29 |
29 public interface ThreadPool |
30 /** This interface defines a thread pool execution service. The ORB uses this |
|
31 * interface, which preceeds the JDK 5 ExecutorService. Note that the close |
|
32 * method must be called in order to reclaim thread resources. |
|
33 */ |
|
34 public interface ThreadPool extends Closeable |
30 { |
35 { |
|
36 |
31 /** |
37 /** |
32 * This method will return any instance of the WorkQueue. If the ThreadPool |
38 * This method will return any instance of the WorkQueue. If the ThreadPool |
33 * instance only services one WorkQueue then that WorkQueue instance will |
39 * instance only services one WorkQueue then that WorkQueue instance will |
34 * be returned. If there are more than one WorkQueues serviced by this |
40 * be returned. If there are more than one WorkQueues serviced by this |
35 * ThreadPool, then this method would return a WorkQueue based on the |
41 * ThreadPool, then this method would return a WorkQueue based on the |