@PublicApi public class EntryProcessorResult<V> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static <V> EntryProcessorResult<V> |
failure(V result,
long failedEntryId)
Create a result after a processing failure.
|
Long |
getFailedEntryId() |
Long |
getLastSuccessfulId() |
V |
getResult() |
int |
hashCode() |
static <V> EntryProcessorResult<V> |
partial(V result,
long lastSuccessfulId)
Create a result after having successfully processed some of the entries.
|
static <V> EntryProcessorResult<V> |
success(V result)
Create result after having successfully processed all entries.
|
String |
toString() |
public V getResult()
public Long getLastSuccessfulId()
public Long getFailedEntryId()
public static <V> EntryProcessorResult<V> success(@Nullable V result)
V
- result typeresult
- resultpublic static <V> EntryProcessorResult<V> partial(@Nullable V result, long lastSuccessfulId)
This static factory method should be used when entry processor processed only some of the entries.
V
- result typeresult
- resultlastSuccessfulId
- id of the last successfully processed JournalEntrypublic static <V> EntryProcessorResult<V> failure(@Nullable V result, long failedEntryId)
This static factory method should be used when an entry could not be processed. Processing should stop immediately after the first failure.
V
- result typeresult
- resultfailedEntryId
- id of JournalEntry which could not be processedCopyright © 2003–2015 Atlassian. All rights reserved.