StatusListener that collects updates.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final AtomicBoolean | |
| private final AtomicReference | |
| private final AtomicLong | |
| private final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | |
| public long | Returns: the number of records already indexedGet the number of records already indexed. |
| public Optional | Returns: the throwable that occurred while indexing.Get the throwable that occurred while indexing. |
| public boolean | |
| public void | onComplete()
Overrides default de. Called when the indexing finished successfully (without an exception). |
| public void | onError(final Throwable throwable)
Overrides default de. Called when there was an error while indexing. |
| public void | onInit(final long fileSize)
Overrides default de. Called on initialization. |
| public void | onReadBytes(final int bytes)
Overrides default de. Called when a new read operation has been performend. |
| public void | onReadRecord()
Overrides default de. Called when a new record has been read. |
| public String |
| byteCount | back to summary |
|---|---|
| private final AtomicLong byteCount | |
| completionStatus | back to summary |
|---|---|
| private final AtomicBoolean completionStatus | |
| failedThrowable | back to summary |
|---|---|
| private final AtomicReference<Throwable> failedThrowable | |
| fileSize | back to summary |
|---|---|
| private final AtomicLong fileSize | |
| recordCount | back to summary |
|---|---|
| private final AtomicLong recordCount | |
| CollectingStatusListener | back to summary |
|---|---|
| public CollectingStatusListener() Default constructor.
| |
| getByteCount | back to summary |
|---|---|
| public long getByteCount() Get the number of bytes already read.
| |
| getFileSize | back to summary |
|---|---|
| public long getFileSize() Get the total size in bytes.
| |
| getRecordCount | back to summary |
|---|---|
| public long getRecordCount() Get the number of records already indexed.
| |
| getThrowable | back to summary |
|---|---|
| public Optional Get the throwable that occurred while indexing. | |
| isCompleted | back to summary |
|---|---|
| public boolean isCompleted() Get the completion status.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides default de. Doc from de. Called when the indexing finished successfully (without an exception).
| |
| onError | back to summary |
|---|---|
| public void onError(final Throwable throwable) Overrides default de. Doc from de. Called when there was an error while indexing.
| |
| onInit | back to summary |
|---|---|
| public void onInit(final long fileSize) Overrides default de. Doc from de. Called on initialization.
| |
| onReadBytes | back to summary |
|---|---|
| public void onReadBytes(final int bytes) Overrides default de. Doc from de. Called when a new read operation has been performend.
| |
| onReadRecord | back to summary |
|---|---|
| public void onReadRecord() Overrides default de. Doc from de. Called when a new record has been read.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |