public class WorkReport<T> extends Object
| Constructor and Description |
|---|
WorkReport(T item,
int retry,
boolean success) |
WorkReport(T item,
int retry,
boolean success,
Exception exception) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException() |
T |
getItem() |
int |
getRetry() |
boolean |
getSuccess() |
public WorkReport(T item, int retry, boolean success)
item - Object representing work report.retry - Number of unsuccessful attempts to process work.success - Indicates whether work was successfully completed.public WorkReport(T item, int retry, boolean success, Exception exception)
item - Object representing work report.retry - Number of unsuccessful attempts to process work.success - Indicates whether work was successfully completed.exception - Exception thrown while processing work.public T getItem()
public boolean getSuccess()
public int getRetry()
public Exception getException()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.