org.apache.blur.concurrent
Class BlurThreadPoolExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by java.util.concurrent.ThreadPoolExecutor
          extended by org.apache.blur.concurrent.BlurThreadPoolExecutor
All Implemented Interfaces:
java.util.concurrent.Executor, java.util.concurrent.ExecutorService

public class BlurThreadPoolExecutor
extends java.util.concurrent.ThreadPoolExecutor


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
 
Constructor Summary
BlurThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<Runnable> workQueue, java.util.concurrent.ThreadFactory threadFactory)
           
 
Method Summary
 void add(ThreadBoundaryProcessor processor)
           
 void execute(Runnable command)
           
 List<ThreadBoundaryProcessor> getPrePostCollection()
           
 void remove(ThreadBoundaryProcessor processor)
           
<T> java.util.concurrent.Future<T>
submit(java.util.concurrent.Callable<T> task)
           
 java.util.concurrent.Future<?> submit(Runnable task)
           
<T> java.util.concurrent.Future<T>
submit(Runnable task, T result)
           
 
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, 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
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurThreadPoolExecutor

public BlurThreadPoolExecutor(int corePoolSize,
                              int maximumPoolSize,
                              long keepAliveTime,
                              java.util.concurrent.TimeUnit unit,
                              java.util.concurrent.BlockingQueue<Runnable> workQueue,
                              java.util.concurrent.ThreadFactory threadFactory)
Method Detail

add

public void add(ThreadBoundaryProcessor processor)

remove

public void remove(ThreadBoundaryProcessor processor)

getPrePostCollection

public List<ThreadBoundaryProcessor> getPrePostCollection()

execute

public void execute(Runnable command)
Specified by:
execute in interface java.util.concurrent.Executor
Overrides:
execute in class java.util.concurrent.ThreadPoolExecutor

submit

public java.util.concurrent.Future<?> submit(Runnable task)
Specified by:
submit in interface java.util.concurrent.ExecutorService
Overrides:
submit in class java.util.concurrent.AbstractExecutorService

submit

public <T> java.util.concurrent.Future<T> submit(Runnable task,
                                                 T result)
Specified by:
submit in interface java.util.concurrent.ExecutorService
Overrides:
submit in class java.util.concurrent.AbstractExecutorService

submit

public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
Specified by:
submit in interface java.util.concurrent.ExecutorService
Overrides:
submit in class java.util.concurrent.AbstractExecutorService


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.