Source Code Cross Referenced for RunnableManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » thread » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.thread 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one or more
003:         * contributor license agreements.  See the NOTICE file distributed with
004:         * this work for additional information regarding copyright ownership.
005:         * The ASF licenses this file to You under the Apache License, Version 2.0
006:         * (the "License"); you may not use this file except in compliance with
007:         * the License.  You may obtain a copy of the License at
008:         *
009:         *      http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         */
017:        package org.apache.cocoon.components.thread;
018:
019:        /**
020:         * The RunnableManager interface describes the functionality of an
021:         * implementation running commands in the background.
022:         *
023:         * @author <a href="mailto:giacomo.at.apache.org">Giacomo Pati</a>
024:         * @version CVS $Id: RunnableManager.java 56786 2004-11-06 23:12:39Z giacomo $
025:         */
026:        public interface RunnableManager {
027:            //~ Instance fields --------------------------------------------------------
028:
029:            /** The role name */
030:            String ROLE = RunnableManager.class.getName();
031:
032:            //~ Methods ----------------------------------------------------------------
033:
034:            /**
035:             * Create a shared ThreadPool with a specific {@link ThreadFactory}
036:             *
037:             * @param name The name of the thread pool
038:             * @param queueSize The size of the queue
039:             * @param maxPoolSize The maximum number of threads
040:             * @param minPoolSize The maximum number of threads
041:             * @param priority The priority of threads created by this pool. This is
042:             *        one of {@link Thread#MIN_PRIORITY}, {@link
043:             *        Thread#NORM_PRIORITY}, or {@link Thread#MAX_PRIORITY}
044:             * @param isDaemon Whether or not thread from the pool should run in daemon
045:             *        mode
046:             * @param keepAliveTime How long should a thread be alive for new work to
047:             *        be done before it is GCed
048:             * @param blockPolicy What's the blocking policy is resources are exhausted
049:             * @param shutdownGraceful Should we wait for the queue to finish all
050:             *        pending commands?
051:             * @param shutdownWaitTime After what time a normal shutdown should take
052:             *        into account if a graceful shutdown has not come to an end
053:             */
054:            void createPool(String name, int queueSize, int maxPoolSize,
055:                    int minPoolSize, int priority, final boolean isDaemon,
056:                    long keepAliveTime, String blockPolicy,
057:                    boolean shutdownGraceful, int shutdownWaitTime);
058:
059:            /**
060:             * Create a private ThreadPool with a specific {@link ThreadFactory}
061:             *
062:             * @param queueSize The size of the queue
063:             * @param maxPoolSize The maximum number of threads
064:             * @param minPoolSize The maximum number of threads
065:             * @param priority The priority of threads created by this pool. This is
066:             *        one of {@link Thread#MIN_PRIORITY}, {@link
067:             *        Thread#NORM_PRIORITY}, or {@link Thread#MAX_PRIORITY}
068:             * @param isDaemon Whether or not thread from the pool should run in daemon
069:             *        mode
070:             * @param keepAliveTime How long should a thread be alive for new work to
071:             *        be done before it is GCed
072:             * @param blockPolicy What's the blocking policy is resources are exhausted
073:             * @param shutdownGraceful Should we wait for the queue to finish all
074:             *        pending commands?
075:             * @param shutdownWaitTime After what time a normal shutdown should take
076:             *        into account if a graceful shutdown has not come to an end
077:             *
078:             * @return The newly created <code>ThreadPool</code>
079:             */
080:            ThreadPool createPool(int queueSize, int maxPoolSize,
081:                    int minPoolSize, int priority, final boolean isDaemon,
082:                    long keepAliveTime, String blockPolicy,
083:                    boolean shutdownGraceful, int shutdownWaitTime);
084:
085:            /**
086:             * Immediate Execution of a runnable in the background
087:             *
088:             * @param command The command to execute
089:             */
090:            void execute(Runnable command);
091:
092:            /**
093:             * Immediate Execution of a runnable in the background
094:             *
095:             * @param command The command to execute
096:             * @param delay The delay before first run
097:             */
098:            void execute(Runnable command, long delay);
099:
100:            /**
101:             * Immediate Execution of a runnable in the background
102:             *
103:             * @param command The command to execute
104:             * @param delay The delay before first run
105:             * @param interval The interval of repeated runs
106:             */
107:            void execute(Runnable command, long delay, long interval);
108:
109:            /**
110:             * Immediate Execution of a runnable in the background
111:             *
112:             * @param threadPoolName The thread pool to use
113:             * @param command The command to execute
114:             */
115:            void execute(String threadPoolName, Runnable command);
116:
117:            /**
118:             * Immediate Execution of a runnable in the background
119:             *
120:             * @param threadPoolName The thread pool to use
121:             * @param command The command to execute
122:             * @param delay The delay before first run
123:             */
124:            void execute(String threadPoolName, Runnable command, long delay);
125:
126:            /**
127:             * Delayed and repeated Execution of a runnable in the background
128:             *
129:             * @param threadPoolName The thread pool to use
130:             * @param command The command to execute
131:             * @param delay The delay before first run
132:             * @param interval The interval of repeated runs
133:             */
134:            void execute(String threadPoolName, Runnable command, long delay,
135:                    long interval);
136:
137:            /**
138:             * Remove a {@link Runnable} from the execution stack
139:             *
140:             * @param command The command to be removed
141:             */
142:            void remove(Runnable command);
143:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.