public class ProcessedImport
extends java.lang.Object
QueuedImport
but only used after the import task has
completed and needs to be garbage-collected.Modifier and Type | Method and Description |
---|---|
static ProcessedImport |
batchCanBeDiscarded(ProcessedImport task)
Creates a new instance to signal that the batch the specified import is
in has been completed and can be discarded.
|
static ProcessedImport |
batchCompleted(ProcessedImport task)
Creates a new instance to signal that the batch the specified import is
in has been completed.
|
ImportBatchId |
batchId() |
boolean |
equals(java.lang.Object x) |
static ProcessedImport |
failed(QueuedImport task)
Creates a new instance for an import that's completed with a failure.
|
int |
hashCode() |
QueuedImport |
queued() |
ImportFinalisationPhase |
status() |
boolean |
succeeded() |
static ProcessedImport |
succeeded(QueuedImport task)
Creates a new instance for an import that's completed successfully.
|
public static ProcessedImport succeeded(QueuedImport task)
task
- the completed import.java.lang.NullPointerException
- if the argument is null
.public static ProcessedImport failed(QueuedImport task)
task
- the completed import.java.lang.NullPointerException
- if the argument is null
.public static ProcessedImport batchCompleted(ProcessedImport task)
task
- the completed import.java.lang.NullPointerException
- if the argument is null
.public static ProcessedImport batchCanBeDiscarded(ProcessedImport task)
task
- the completed import.java.lang.NullPointerException
- if the argument is null
.public QueuedImport queued()
public boolean succeeded()
true
just in case the import completed successfully.public ImportFinalisationPhase status()
public ImportBatchId batchId()
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object