public class FetchAndLockResult extends Object
Modifier and Type | Field and Description |
---|---|
protected List<LockedExternalTaskDto> |
tasks |
protected Throwable |
throwable |
Constructor and Description |
---|
FetchAndLockResult(List<LockedExternalTaskDto> tasks) |
FetchAndLockResult(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
static FetchAndLockResult |
failed(Throwable throwable) |
List<LockedExternalTaskDto> |
getTasks() |
Throwable |
getThrowable() |
static FetchAndLockResult |
successful(List<LockedExternalTaskDto> tasks) |
String |
toString() |
boolean |
wasSuccessful() |
protected List<LockedExternalTaskDto> tasks
protected Throwable throwable
public FetchAndLockResult(List<LockedExternalTaskDto> tasks)
public FetchAndLockResult(Throwable throwable)
public List<LockedExternalTaskDto> getTasks()
public Throwable getThrowable()
public boolean wasSuccessful()
public static FetchAndLockResult successful(List<LockedExternalTaskDto> tasks)
public static FetchAndLockResult failed(Throwable throwable)
Copyright © 2020. All rights reserved.