public class WorkReport<T>
extends java.lang.Object
| Constructor | Description |
|---|---|
WorkReport(T item,
int retry,
boolean success) |
|
WorkReport(T item,
int retry,
boolean success,
java.lang.Exception exception) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.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, java.lang.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 java.lang.Exception getException()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.