public final class BulkItem<T> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BulkItem.BulkItemBuilder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> BulkItem.BulkItemBuilder<T> |
builder() |
Exception |
getException()
An exception if the item was failed
|
Serializable |
getId()
The item id
|
String |
getMessage()
Message to add context on this item.
|
T |
getPayload()
The actual data this entity represents
|
String |
getStatusCode()
An optional status code
|
boolean |
isSuccessful()
Whether or not it was successful.
|
public Serializable getId()
public boolean isSuccessful()
false if exception is not
null, however there might not be an exception but the item could still not be successful for other reasons.public String getMessage()
public String getStatusCode()
public Exception getException()
public T getPayload()
public static <T> BulkItem.BulkItemBuilder<T> builder()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.