|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.api.service.journal.EntryProcessorResult<V>
@PublicApi public class EntryProcessorResult<V>
Result of entry processing operation.
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object o)
|
|
static
|
failure(V result,
long failedEntryId)
Create a result after a processing failure. |
|
java.lang.Long |
getFailedEntryId()
|
|
java.lang.Long |
getLastSuccessfulId()
|
|
V |
getResult()
|
|
int |
hashCode()
|
|
static
|
partial(V result,
long lastSuccessfulId)
Create a result after having successfully processed some of the entries. |
|
static
|
success(V result)
Create result after having successfully processed all entries. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public V getResult()
public java.lang.Long getLastSuccessfulId()
public java.lang.Long getFailedEntryId()
public static <V> EntryProcessorResult<V> success(@Nullable V result)
V
- result typeresult
- result
public 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 JournalEntry
public 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 processed
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |