public interface ThreadUtils
| 限定符和类型 | 字段和说明 |
|---|---|
static CompletionService<Integer> |
completionService |
static org.slf4j.Logger |
logger |
static ExecutorService |
service |
static AtomicInteger |
threadCount |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
computeTime(long startTime) |
static void |
computeTime(long startTime,
boolean isNanoTime) |
static void |
logAcquire(Semaphore sp) |
static void |
logCyclicBarrier(CyclicBarrier cb,
String place) |
static void |
logRelease(Semaphore sp) |
static void |
testCAP(java.util.function.Consumer<Integer> cap,
int loop,
String name) |
static <T extends Runnable> |
testMultiCase(java.util.function.Supplier<T> run,
int count) |
static <T extends Runnable> |
testMultiCase(java.util.function.Supplier<T> run,
int count,
boolean isNanoTime) |
static void |
testSimpleCAP(java.util.function.Consumer<Integer> cap,
int loop) |
static <T extends Runnable> |
testSimpleCase(T run,
int count) |
static <T extends Runnable> |
testSimpleCase(T run,
int count,
boolean isNanoTime) |
static final org.slf4j.Logger logger
static final AtomicInteger threadCount
static final ExecutorService service
static final CompletionService<Integer> completionService
static <T extends Runnable> void testMultiCase(java.util.function.Supplier<T> run, int count, boolean isNanoTime)
static <T extends Runnable> void testSimpleCase(T run, int count, boolean isNanoTime)
static <T extends Runnable> void testMultiCase(java.util.function.Supplier<T> run, int count)
static <T extends Runnable> void testSimpleCase(T run, int count)
static void testCAP(java.util.function.Consumer<Integer> cap, int loop, String name)
static void testSimpleCAP(java.util.function.Consumer<Integer> cap, int loop)
static void computeTime(long startTime,
boolean isNanoTime)
static void computeTime(long startTime)
static void logCyclicBarrier(CyclicBarrier cb, String place)
static void logAcquire(Semaphore sp) throws InterruptedException
static void logRelease(Semaphore sp)
Copyright © 2016. All rights reserved.