T
- information that can be used to resume the paused operation;
can be null if the pause failed.public final class PauseResult<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private T |
infoToResume |
private PauseStatus |
pauseStatus |
Constructor and Description |
---|
PauseResult(PauseStatus pauseStatus) |
PauseResult(PauseStatus pauseStatus,
T infoToResume) |
Modifier and Type | Method and Description |
---|---|
T |
getInfoToResume()
Returns the information that can be used to resume a successfully paused
operation.
|
PauseStatus |
getPauseStatus()
Returns information about whether the pause was successful or not; and
if not why.
|
private final PauseStatus pauseStatus
private final T infoToResume
public PauseResult(PauseStatus pauseStatus, T infoToResume)
public PauseResult(PauseStatus pauseStatus)
public PauseStatus getPauseStatus()
public T getInfoToResume()