public class ExecutorBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutorBuilder.QueueType |
Constructor and Description |
---|
ExecutorBuilder() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ThreadPoolExecutor |
build(Options options) |
ExecutorBuilder |
prefix(java.lang.String prefix) |
ExecutorBuilder |
rejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler) |
ExecutorBuilder |
size(int size) |
ExecutorBuilder |
threadFactory(java.util.concurrent.ThreadFactory threadFactory) |
public ExecutorBuilder size(int size)
public ExecutorBuilder prefix(java.lang.String prefix)
public ExecutorBuilder threadFactory(java.util.concurrent.ThreadFactory threadFactory)
public ExecutorBuilder rejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler)
public java.util.concurrent.ThreadPoolExecutor build(Options options)