Class EntryProcessorResult<V>
java.lang.Object
com.atlassian.confluence.api.service.journal.EntryProcessorResult<V>
Result of entry processing operation.
- Since:
- 5.6
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <V> EntryProcessorResult<V>
failure
(@Nullable V result, long failedEntryId) Create a result after a processing failure.int
hashCode()
static <V> EntryProcessorResult<V>
partial
(@Nullable V result, long lastSuccessfulId) Create a result after having successfully processed some of the entries.static <V> EntryProcessorResult<V>
success
(@Nullable V result) Create result after having successfully processed all entries.toString()
-
Method Details
-
getResult
-
getLastSuccessfulId
-
getFailedEntryId
-
success
Create result after having successfully processed all entries.- Type Parameters:
V
- result type- Parameters:
result
- result- Returns:
- result
-
partial
Create a result after having successfully processed some of the entries.This static factory method should be used when entry processor processed only some of the entries.
- Type Parameters:
V
- result type- Parameters:
result
- resultlastSuccessfulId
- id of the last successfully processed JournalEntry- Returns:
- result
-
failure
Create a result after a processing failure.This static factory method should be used when an entry could not be processed. Processing should stop immediately after the first failure.
- Type Parameters:
V
- result type- Parameters:
result
- resultfailedEntryId
- id of JournalEntry which could not be processed- Returns:
- result
-
equals
-
hashCode
public int hashCode() -
toString
-