| Constructor and Description |
|---|
AsyncCallPresenter() |
| Modifier and Type | Method and Description |
|---|---|
AsyncCallDto |
awaitCompletionWithTimeoutAndConvertToDto(AsyncCall<?> asyncCall,
Long timeoutMs)
with partial result
|
AsyncCallDto |
awaitCompletionWithTimeoutAndConvertToDto(AsyncCall<?> asyncCall,
Long timeoutMs,
boolean needPartialResult)
Waits if necessary for at most the given time for the call to complete, and then retrieves its result as dto.
|
static AsyncCallPresenter |
instance() |
AsyncCallDto |
toDTO(AsyncCall<?> asyncCall)
with partial result
|
AsyncCallDto |
toDTO(AsyncCall<?> asyncCall,
boolean needPartialResult) |
public static AsyncCallPresenter instance()
public AsyncCallDto toDTO(AsyncCall<?> asyncCall)
RuntimeException - propagated, when call thrownpublic AsyncCallDto toDTO(AsyncCall<?> asyncCall, boolean needPartialResult)
RuntimeException - propagated, when call thrownpublic AsyncCallDto awaitCompletionWithTimeoutAndConvertToDto(AsyncCall<?> asyncCall, Long timeoutMs)
public AsyncCallDto awaitCompletionWithTimeoutAndConvertToDto(AsyncCall<?> asyncCall, Long timeoutMs, boolean needPartialResult)
RuntimeException - propagated, when call thrown