public class ConfluencePoolBasedEventExecutorFactory
extends com.atlassian.event.internal.DirectEventExecutorFactory
Uses a ThreadPoolExecutor.CallerRunsPolicy
for running threads in case if queue is
full
Constructor and Description |
---|
ConfluencePoolBasedEventExecutorFactory(com.atlassian.event.config.EventThreadPoolConfiguration configuration,
com.atlassian.event.internal.EventThreadFactory eventThreadFactory,
RejectedExecutionHandler rejectedExecutionHandler) |
Modifier and Type | Method and Description |
---|---|
ThreadPoolExecutor |
getExecutor() |
protected BlockingQueue<Runnable> |
getQueue() |
RejectedExecutionHandler |
getRejectedExecutionHandler() |
public ConfluencePoolBasedEventExecutorFactory(com.atlassian.event.config.EventThreadPoolConfiguration configuration, com.atlassian.event.internal.EventThreadFactory eventThreadFactory, RejectedExecutionHandler rejectedExecutionHandler)
protected BlockingQueue<Runnable> getQueue()
getQueue
in class com.atlassian.event.internal.DirectEventExecutorFactory
public ThreadPoolExecutor getExecutor()
getExecutor
in interface com.atlassian.event.spi.EventExecutorFactory
getExecutor
in class com.atlassian.event.internal.AbstractEventExecutorFactory
public RejectedExecutionHandler getRejectedExecutionHandler()
Copyright © 2003–2021 Atlassian. All rights reserved.