Class AsynchronousOperationReturnValue<T>
java.lang.Object
com.evolveum.midpoint.schema.result.AsynchronousOperationResult
com.evolveum.midpoint.schema.result.AsynchronousOperationReturnValue<T>
- All Implemented Interfaces:
ShortDumpable
This may seems too simple and maybe pointless now. But we expect
that it may later evolve to something like future/promise.
- Author:
- semancik
-
Constructor Summary
ConstructorDescriptionAsynchronousOperationReturnValue
(T returnValue, @NotNull OperationResult operationResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Show the content of the object intended for diagnostics.toString()
static <T> AsynchronousOperationReturnValue<T>
wrap
(T returnValue, @NotNull OperationResult result) Methods inherited from class com.evolveum.midpoint.schema.result.AsynchronousOperationResult
getOperationResult, getOperationType, isInProgress, isQuantumOperation, setOperationType, setQuantumOperation, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
AsynchronousOperationReturnValue
public AsynchronousOperationReturnValue(@Nullable T returnValue, @NotNull @NotNull OperationResult operationResult)
-
-
Method Details
-
getReturnValue
-
wrap
public static <T> AsynchronousOperationReturnValue<T> wrap(@Nullable T returnValue, @NotNull @NotNull OperationResult result) -
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Overrides:
shortDump
in classAsynchronousOperationResult
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
toString
- Overrides:
toString
in classAsynchronousOperationResult
-