public class MeasuredExecutionResult<RESULTTYPE> extends TimeMeasure
NEGATIVE| Constructor and Description |
|---|
MeasuredExecutionResult(Instant start,
Duration duration,
RESULTTYPE result) |
MeasuredExecutionResult(Instant start,
Duration duration,
Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Throwable> |
getException() |
Optional<RESULTTYPE> |
getReturnValue()
The result of the execution.
|
boolean |
wasSuccessful()
Indicator whether the execution was successful.
|
getDuration, getStart, isFinishedpublic MeasuredExecutionResult(Instant start, Duration duration, RESULTTYPE result)
public Optional<RESULTTYPE> getReturnValue()
Void.public boolean wasSuccessful()
Copyright © 2016 DevCon5 GmbH. All rights reserved.