Class ThreadPoolQueueExecutor
java.lang.Object
cn.sliew.carp.framework.queue.kekio.QueueExecutor<org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor>
cn.sliew.carp.framework.queue.kekio.ThreadPoolQueueExecutor
- All Implemented Interfaces:
Executor
public class ThreadPoolQueueExecutor
extends QueueExecutor<org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor>
-
Field Summary
Fields inherited from class cn.sliew.carp.framework.queue.kekio.QueueExecutor
executor -
Constructor Summary
ConstructorsConstructorDescriptionThreadPoolQueueExecutor(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor) -
Method Summary
Methods inherited from class cn.sliew.carp.framework.queue.kekio.QueueExecutor
execute
-
Constructor Details
-
ThreadPoolQueueExecutor
public ThreadPoolQueueExecutor(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor)
-
-
Method Details
-
hasCapacity
public boolean hasCapacity()- Specified by:
hasCapacityin classQueueExecutor<org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor>
-
availableCapacity
- Specified by:
availableCapacityin classQueueExecutor<org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor>
-