public class WhenFutureObj extends Object
| 构造器和说明 |
|---|
WhenFutureObj() |
| 限定符和类型 | 方法和说明 |
|---|---|
static WhenFutureObj |
fail(String executorId,
Exception ex) |
Exception |
getEx() |
String |
getExecutorId() |
boolean |
isSuccess() |
boolean |
isTimeout() |
void |
setEx(Exception ex) |
void |
setExecutorId(String executorId) |
void |
setSuccess(boolean success) |
void |
setTimeout(boolean timeout) |
static WhenFutureObj |
success(String executorId) |
static WhenFutureObj |
timeOut(String executorId) |
public static WhenFutureObj success(String executorId)
public static WhenFutureObj fail(String executorId, Exception ex)
public static WhenFutureObj timeOut(String executorId)
public boolean isSuccess()
public void setSuccess(boolean success)
public String getExecutorId()
public void setExecutorId(String executorId)
public Exception getEx()
public void setEx(Exception ex)
public boolean isTimeout()
public void setTimeout(boolean timeout)
Copyright © 2024. All rights reserved.