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() |
Serializable |
getCustomProperty(String key)
A custom property stored under the given key
|
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()
Wether 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 Serializable getCustomProperty(String key)
key - the key of the custom propertySerializable valuepublic static <T> BulkItem.BulkItemBuilder<T> builder()
Copyright © 2016 MuleSoft, Inc.. All rights reserved.