public interface ForkFuture
| 限定符和类型 | 方法和说明 |
|---|---|
int |
awaitTerminated(long timeout,
TimeUnit unit) |
boolean |
hasStderr()
截止方法调用时,子进程是否产生过错误输出。
|
boolean |
hasStdout()
截止方法调用时,子进程是否产生过标准输出
|
Integer |
hasTerminated()
子进程是否已经结束,并返回结束ExitValue
|
boolean |
isTerminated()
子进程是否已经结束
|
String |
readFullyStderr() |
String |
readFullyStdout() |
String |
readLineStderr() |
String |
readLineStdout() |
String readLineStdout() throws InterruptedException
String readLineStderr() throws InterruptedException
String readFullyStdout() throws InterruptedException
String readFullyStderr() throws InterruptedException
boolean hasStdout()
boolean hasStderr()
boolean isTerminated()
Integer hasTerminated()
int awaitTerminated(long timeout,
TimeUnit unit)
throws ForkTimeoutException,
InterruptedException
Copyright © 2017. All rights reserved.