1 16 17 package org.apache.jetspeed.services.threadpool; 18 19 import org.apache.turbine.services.TurbineServices; 20 21 29 public class ThreadPool 30 { 31 32 35 public static void process( Runnable runnable ) { 36 37 JetspeedThreadPoolService service = 38 (JetspeedThreadPoolService) TurbineServices 39 .getInstance() 40 .getService( ThreadPoolService.SERVICE_NAME ); 41 42 service.process( runnable ); 43 44 } 45 46 49 public static void process( Runnable runnable, int priority ) { 50 51 JetspeedThreadPoolService service = 52 (JetspeedThreadPoolService) TurbineServices 53 .getInstance() 54 .getService( ThreadPoolService.SERVICE_NAME ); 55 56 service.process( runnable, priority ); 57 58 } 59 60 } 61 | Popular Tags |