public class ExecutorBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutorBuilder.QueueType |
| Constructor and Description |
|---|
ExecutorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolExecutor |
build(Options options) |
ExecutorBuilder |
prefix(String prefix) |
ExecutorBuilder |
rejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) |
ExecutorBuilder |
size(int size) |
ExecutorBuilder |
threadFactory(ThreadFactory threadFactory) |
public ExecutorBuilder size(int size)
public ExecutorBuilder prefix(String prefix)
public ExecutorBuilder threadFactory(ThreadFactory threadFactory)
public ExecutorBuilder rejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
public ThreadPoolExecutor build(Options options)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.