1 16 package org.apache.cocoon.components.thread; 17 18 25 public interface RunnableManager 26 { 27 29 30 String ROLE = RunnableManager.class.getName( ); 31 32 34 54 void createPool( String name, 55 int queueSize, 56 int maxPoolSize, 57 int minPoolSize, 58 int priority, 59 final boolean isDaemon, 60 long keepAliveTime, 61 String blockPolicy, 62 boolean shutdownGraceful, 63 int shutdownWaitTime ); 64 65 86 ThreadPool createPool( int queueSize, 87 int maxPoolSize, 88 int minPoolSize, 89 int priority, 90 final boolean isDaemon, 91 long keepAliveTime, 92 String blockPolicy, 93 boolean shutdownGraceful, 94 int shutdownWaitTime ); 95 96 101 void execute( Runnable command ); 102 103 109 void execute( Runnable command, 110 long delay ); 111 112 119 void execute( Runnable command, 120 long delay, 121 long interval ); 122 123 129 void execute( String threadPoolName, 130 Runnable command ); 131 132 139 void execute( String threadPoolName, 140 Runnable command, 141 long delay ); 142 143 151 void execute( String threadPoolName, 152 Runnable command, 153 long delay, 154 long interval ); 155 156 161 void remove( Runnable command ); 162 } 163 | Popular Tags |