public class Concurrents extends Object
构造器 | 说明 |
---|---|
Concurrents() |
限定符和类型 | 方法 | 说明 |
---|---|---|
static long |
sub(long v1,
long v2) |
|
static long |
terminate(ExecutorService exec,
long timeout,
TimeUnit unit) |
|
static long |
terminateQuietly(ExecutorService exec,
long timeout,
TimeUnit unit) |
public static long sub(long v1, long v2)
public static long terminate(ExecutorService exec, long timeout, TimeUnit unit) throws InterruptedException
public static long terminateQuietly(ExecutorService exec, long timeout, TimeUnit unit)
Copyright © 2018. All rights reserved.