org.gcube.application.aquamaps.aquamapsservice.impl.util
Class MyPooledExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by java.util.concurrent.ThreadPoolExecutor
          extended by org.gcube.application.aquamaps.aquamapsservice.impl.util.MyPooledExecutor
All Implemented Interfaces:
Executor, ExecutorService, ExtendedExecutor

public class MyPooledExecutor
extends ThreadPoolExecutor
implements ExtendedExecutor


Nested Class Summary
protected static class MyPooledExecutor.MyThreadFactory
          Uses java.util.concurrent.Executors.defaultThreadFactory() setting threadLabel and priority (optional)
 
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
 
Method Summary
 String getDetails()
           
static ExtendedExecutor getExecutor(String threadLabel, int maxThread)
           
 
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
 
Methods inherited from interface java.util.concurrent.Executor
execute
 

Method Detail

getDetails

public String getDetails()
Specified by:
getDetails in interface ExtendedExecutor

getExecutor

public static ExtendedExecutor getExecutor(String threadLabel,
                                           int maxThread)


Copyright © 2013. All Rights Reserved.